Code World

Code World

Not enough ratings
Full walkthrough
By Tablis
Includes screenshots, videos and more!
2
   
Award
Favorite
Favorited
Unfavorite
Intro
Wondering if this game is right for you... haven't bought yet, just checking out the guide(s)? Consider reading my review.

I thought about pasting code here but there's no point, as you cannot paste it into the game anyway if it was copied outside of the game.

If you are not familiar with Python please keep in mind that having even (uniform) indentations can be important!

Also, "send 100" means this:






But "send 'down'" means this (without the ' ' !):






Please report any issues with the guide (wrong solutions, missing screenshots, broken pythontutor links etc.) as comments.
Level 0
  • send 'open' to rectangle
  • again send 'open' to rectangle (need to jump)
Level 1
  • send 100 to the first rectangle
  • send 100 again to the same rectangle (need to jump)
  • send 'down' to the second rectangle
Level 2
Level 3
  • send 'destroy' to the first blue rectangle
  • send 'wall' to the red square above
Level 4
  • send 47 to the first purple rectangle
  • send 'wall 3' to the same rectangle
  • send 'wall 2' to the same rectangle
  • send 'wall 1' to the same rectangle
Level 5
Level 6
  • send 'aax45678' to first blue rectangle
  • send 'f_1024_f([])' to second blue rectangle
  • send anything to red square above
Level 7
  • send 198 to first red rectangle
  • send 200 to first red rectangle
  • send 497 to last red rectangle (need to jump)
Level 8
  • send 'left' to 'sender' (first red square)
  • send 'down' to 'sender'
  • send 'destroy' to 'sender'
Level 9
Send 31 to 'shield 1' (first purple rectangle).
Level 10
Send 'ofpreene' to the middle red square above.
Level 11
  • send 'kill door' to second yellow square
  • send 'kill door' to third yellow square
  • send 'kill door' to purple rectangle
Level 12
Level 13
Send 'show' to the red square on the left.
Change it to the following:
Close the editor and send anything to the same red square.
Level 14
  • send 702555 to the red square above
  • send 1230098 to the first blue rectangle
  • send 'destroy' to the same blue rectangle
Level 15
Level 16
Level 17
Level 18
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 19
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 20
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 21
Add the numbers being sent from the left square to the center square.
As soon as they reach or exceed 30, send a 0 up to the center square in order to forward the accumulated result to the right square.
Keep doing that:
Level 22
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 23
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 24
Send 70 up and 6 right:
Level 25
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 26
  • send 25 up to the first red square
  • wait until 125 appears being sent from one square to the other
  • send -39 to the first red square (while 125 is still moving)
Level 27
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 28
  • send -80 to the red square on the left (while jumping)
  • jump onto the square
Level 29
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 30
Send 17 to 'shield 2' (second floating, purple rectangle).
Level 31
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 32
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 33
Level 34
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 35
  • send 20000 to the bottom red square
  • send 'a' to the top red square
Level 36
  • send anything to the middle green square
  • change it so that it looks like on the screenshot below
  • then send anything to it again
Level 37
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 38
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 39
Send 125 to the blue square above.
Level 40
  • send 'xxooox' to the first (left) red square above
  • send 'oooxxo' to the second (right) red square above
  • send 1 to the yellow rectangle to the right
  • once the squares stop moving, again send 1 to the yellow rectangle
Level 41
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 42
Send 51 to the red rectangle.

Click here[pythontutor.com] to see the code I wrote to solve this problem.
Level 43
Change object 'f' to the following:
Yes, I am aware this is not a particularly robust solution. But it works.
Level 44
Send 1175 to the floating square.
Level 45
  • send 'sender' to the yellow rectangle
  • change 'sender' object to what is shown on the screenshot below
  • again send 'sender' to the yellow rectangle
  • once the squares at the top stop moving, send anything to the yellow rectangle
Level 46
Level 47
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 48
Change object 'f' to the following:
Click here[pythontutor.com] to see how this code works, step by step.
Level 49
  • send 'value player' to the blue rectangle
  • jump three times
  • send 31 to the blue rectangle

Click here[pythontutor.com] to see the code I wrote to solve this problem.
Outro
Do you want to learn more about Python? Here are a just a few resources:
  • the official documentation (includes a tutorial): <click>[docs.python.org]
  • a free, online book suitable for beginners: <click>[automatetheboringstuff.com]
  • some online puzzles, not too dissimilar from these: <click>[codingbat.com]
  • YouTube channels with videos about the basics: <click> <click>
4 Comments
Shane21DXD 1 May, 2024 @ 3:20pm 
thanks dude
wrxmarcus 15 Dec, 2023 @ 10:23am 
Great guide. I was trying not to use it. I'm completely stuck on level 13. I tried send 7 & 7, and I tried send 7 & 8. I always get a "SYSTEM FAILURE". I looked at your guide and I have the exact same code, so now I'm very confused.

I'm trying to find base instructions. I have no idea what "System Failure" means when it resets the level. Any specific guidance on 13 -- or any general guidance you might consider adding to the walkthrough on how the game works (notably, "system failure lol). Thanks!
Authric Charlsson 2 Jun, 2019 @ 6:56pm 
it's "wall" now ok
Authric Charlsson 2 Jun, 2019 @ 6:52pm 
f_1024_f([]) didn't destroy my blue square in level 6?..