repl.it
@minx28/

puzzle 1

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
x,y,cells=0,0,[]
for word in ("COLOR MOVE RIGHT COLOR MOVE RIGHT COLOR MOVE LEFT MOVE DOWN COLOR MOVE DOWN COLOR MOVE RIGHT MOVE RIGHT MOVE RIGHT COLOR MOVE UP COLOR MOVE UP COLOR MOVE RIGHT COLOR MOVE RIGHT COLOR MOVE DOWN COLOR MOVE DOWN COLOR MOVE LEFT COLOR MOVE RIGHT MOVE RIGHT MOVE RIGHT COLOR MOVE UP MOVE UP COLOR MOVE RIGHT MOVE DOWN COLOR MOVE UP MOVE RIGHT COLOR MOVE DOWN MOVE DOWN COLOR MOVE RIGHT MOVE RIGHT COLOR MOVE UP COLOR MOVE UP COLOR MOVE RIGHT MOVE RIGHT MOVE RIGHT MOVE RIGHT COLOR MOVE LEFT COLOR MOVE LEFT COLOR MOVE DOWN COLOR MOVE DOWN COLOR MOVE RIGHT COLOR MOVE RIGHT COLOR MOVE RIGHT MOVE RIGHT COLOR MOVE UP COLOR MOVE UP COLOR MOVE RIGHT COLOR MOVE RIGHT COLOR MOVE LEFT MOVE DOWN MOVE DOWN COLOR MOVE RIGHT COLOR MOVE RIGHT MOVE RIGHT COLOR MOVE UP COLOR MOVE UP COLOR MOVE RIGHT MOVE DOWN MOVE DOWN COLOR MOVE RIGHT COLOR MOVE RIGHT MOVE RIGHT COLOR MOVE UP COLOR MOVE UP COLOR MOVE RIGHT COLOR MOVE RIGHT COLOR MOVE DOWN COLOR MOVE DOWN COLOR MOVE LEFT COLOR MOVE RIGHT MOVE RIGHT MOVE RIGHT COLOR MOVE UP COLOR MOVE UP COLOR MOVE DOWN MOVE DOWN MOVE RIGHT COLOR MOVE RIGHT COLOR MOVE UP COLOR MOVE UP COLOR MOVE RIGHT MOVE RIGHT COLOR MOVE DOWN COLOR MOVE DOWN COLOR MOVE RIGHT COLOR MOVE UP MOVE RIGHT COLOR MOVE UP MOVE LEFT COLOR"+" PRINT").split():cells.append((x,y)) if word=="COLOR" else None;x+=1 if word=="RIGHT" else -1 if word=="LEFT" else 0;y+=1 if word=="DOWN" else -1 if word=="UP" else 0;[([print("88" if (j,i) in cells else "  ",end="") for j in range(37)],print()) for i in range(3)] if word=="PRINT" else None
?