Dion
  • Member for 1 year, 11 months
  • Last seen more than a week ago
root of root of root of root
12 votes

Python 2, 104 94 89 81 79 bytes s=n=input() while s:print' '*s,'/ '*(n-s)+'_'*(2*s+len(`n`));s-=1 print'\/'*n,n Try it online! Edit 1: Forgot I switched to python 2 lol Edit 2: Thanks @ElPedro for ...

View answer
Make your code error, but only sometimes!
7 votes

><>, 3 bytes x,; Try it online! My first submission in ><>, very simple

View answer
How happy is this emoticon?
6 votes

Python 3, 25 bytes lambda s:160%ord(s[-1])%7 Try it online! Math taken from @dingledooper

View answer
Output 2015 as QR code
5 votes

Python 3, 261 bytes from PIL import Image h=Image.new("1",[21]*2) h.putdata([int(u)for u in list("".join(format(ord(i),"08b")for i in'\x01\x0c\x03ï¯\x91MD\x8bª$]Q>þø\...

View answer
Bot Factory KoTH (2.0)
5 votes

The Caveman (151 bytes) This is Caveman. Very primitive. Hunt if strong. Eat if weak. Ooga-Booga. { name: "The Caveman", color: "#FF0000", run:()=>{w=bots().sort((a,b)=>...

View answer
Draw an ASCII-art rainbow
5 votes

MAWP 1.1, 95 bytes %@~52WWM52WWM52WWM84W;![1A99M1M5W;]%52W;68W1A;![1A84W;]%68W2W4A;52W;56W1M4W;![1A84W;]%56W1M4W;. Try it! Explanation: % Remove initial 1 from stack @~ ...

View answer
Peel away the layers - Cops
4 votes

4 Layers, сracked by Sisyphus 1 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+=A1 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+...

View answer
"Hello, World!"
4 votes

MAWP, 86 62 bytes 89W!;74WM1M!;7M!!;;3M;66W8M;84W;99W6M!;64WM!;3M!;6A!;8A;66W3A; Try it!

View answer
Golf you a quine for great good!
4 votes

MAWP, 60 bytes Thanks @JoKing for saving a whopping 55 bytes! 48923792915350878792773358929392915992930\%\[52WW\M!:\]\[;\] Try it! It's finally done! Explanation: The quine is essentially split into ...

View answer
#OctothorpeAsciiArt
3 votes

MAWP 2.0, 46 bytes @!!!"#"*/" "*\+2*" "+*!:/!5*"#"*" "+*!:\!:/:/: Try it!

View answer
Divisible strings
3 votes

Vyxal, 8 5 bytes ₌CLœΠ Thanks @Lyxal for saving 3 bytes Try it Online!

View answer
Bot Factory KoTH (2.0)
3 votes

The Luggage { name: "The Luggage", color: "#8B4513", run:()=>dirTo(bots()[0].pos) } Bonus points for guessing the name origin var botData = [ { name: "...

View answer
Divisible strings
3 votes

Python 2, 41 39 bytes lambda s:all(ord(i)%len(s)<1for i in s) Try it online! -2 bytes thanks to @ovs

View answer
"Hello, World!"
3 votes

MAWP 2.0, 16 bytes "Hello, World!":

View answer
Is it a brainfuck instruction?
3 votes

Python 3, 26, 23 bytes lambda s:s in'+-,.<>[]' Try it online!

View answer
Simple cat program
3 votes

MAWP, 7 bytes |0~[;]. Try it! Explanation: | Push input to stack 0 Add a zero to stack ~ Reverse stack [;] Output each character from stack until 0 . Terminate program

View answer
Average of your code
3 votes

Python 3, 10 bytes print("N") Try it online!

View answer
Average of your code
3 votes

MAWP 0.1, 3 bytes 99: Outputs 9. Works because : and 9 are neighbours in the table, so 9: gives a value thats in between them, so adding another 9 guarantees that the average corresponds to 9

View answer
Obfuscated Hello World
3 votes

MAWP, 97 89 bytes 98W;55W4W1M;93W4W;93W4W;94W1M3W;58W4M;84W;98M5W64AM;94W1M3W;99M1M6W;93W4W;55W4W;964AM3W;. Meets two of the requirements

View answer
Fizz! Buzz! 'ave a banana!
3 votes

Python 2, 102 79 bytes a='fizz' b='buzz' def f(s):t={'Python':a,a:b,b:"'ave a banana"}[s];print t;f(t) Try it online! Uses a different approach from the other answer, recursive function Edit: ...

View answer
Create pixel art!
3 votes

Python 3 + PIL, 211 208 bytes from PIL import Image as I i=I.open(input(),'r') p=i.load() q,g=i.size;a=q//4;c=g//4 u=I.new('RGB',(a,c)) o=u.load() for w in range(a): for h in range(c):o[w,h]=tuple(e/...

View answer
Ones and Twos for days
3 votes

Python 3, 37 bytes i=1 while 1:print('1'+'2'*i+'1');i+=2 Try it online!

View answer
Diagonal Alphabet
2 votes

i386 Bootsector, 19 bytes (Technically 512 due to padding) Here is a hexdump of the program without padding: 0000-0010: b4 0e b3 61-88 d8 cd 10-b0 0a cd 10-fe c3 80 fb ...a.... ........ 0000-0013: ...

View answer
Output with the same length as the code
2 votes

MAWP, 1 bytes : Try it! Prints the 1 thats already on stack

View answer
Scream very loudly
2 votes

MAWP 0.1, 8 bytes [94M5W;] Explanation: [ start of loop 94M5W push 65 to stack ((9+4)*5) ; print as ascii ] end of loop

View answer
Print a 10 by 10 grid of asterisks
2 votes

CJam, 8 bytes '*A*N+A* My first CJam answer! Explanation: '* Push an asterisk A* Multiply by 10 N+ Add a newline A* Multiply by 10 Implicitly output

View answer
Shortest code to produce infinite output
2 votes

MAWP, 4 bytes [!:] Explanation: [ start of loop ! duplicate top of stack (1) : print top of stack ] end of loop Prints 1 infinitely

View answer
Lolololololololololololol
2 votes

MAWP, 10 bytes 76;["ol":] Try it!

View answer
In The Jailhouse Now
2 votes

MAWP, 73 bytes @=MM"╔":!3-["╦":1-]`"╗ ":2-["╠":M3-["╬":1-]`"╣ ":1-]`"╚":M3-["╩":1-]`"╝": Try it! Note the ...

View answer
Print a 10 by 10 grid of asterisks
2 votes

MAWP, 23 bytes 25W[25W[67W;1A]%52W;1A] Try it! Two nested loops doing almost the same thing MAWP 2.0, 20 bytes 10[10["*":1-]`10;1-] Try it! Basically the same thing

View answer