Book a free demo

๐Ÿ’ป Coding games ยท free, no sign-up

Code Jungle: write Python, feed the monkey.

Play Code Jungle

Loading Code Jungleโ€ฆ

Type real Python commands such as step(3) and turn_left(), press Run and watch Miko follow your code across floating islands. Collect every banana in as few lines as you can.

ShareWhatsApp

How to play Code Jungle

  1. Pick a tier and a level on the map. Tier 1 is sequences, tier 2 is loops, tier 3 is logic (while, if and functions).
  2. Read the goal, then type Python in the editor, or tap a command under it to add it. step(n) walks n squares; turn_left() and turn_right() turn on the spot.
  3. Press Run (or Ctrl+Enter). The line that is running lights up, so you can see exactly what your code does.
  4. Fell in the water? The line that caused it turns red. Fix it and run again. Every banana collected finishes the level.
  5. Stars come from short code: match the target number of lines for โ˜…โ˜…โ˜…. In tier 3 the island changes between runs, so your code must use sensors like path_ahead().

Tips and strategy

  • Say each move out loud before you type it: โ€œforward 2, turn right, forward 2โ€.
  • Spot a repeating pattern? Put it inside for i in range(n): and indent it by 4 spaces.
  • Turns are from Mikoโ€™s point of view, not yours. If Miko faces you, his right is your left.
  • Stuck in tier 3? Write what you would do at every square: โ€œif the path is clear, step; otherwise turnโ€.
  • After three tries a Solution button appears. Read it, then try to write your own version from memory.

Learn beyond the game

Explore the idea behind Code Jungle

Worked example

If three islands have the same short route, write the repeated move once inside for i in range(3):. The loop runs the indented instruction three times, which can earn stars for shorter code.

Common sticking point

A loop repeats its indented body. If the body never changes the situation, it may run forever; if the indentation is wrong, Python treats the line as outside the loop. Check which square Miko is on each turn.

Try it away from the screen

Draw a 5-square path and mark Miko's starting direction. Write one command per line, then trace the route with your finger before running it in the game.

Mini challenge

Can you collect a row of three bananas with a loop instead of three repeated commands? Then change the island and explain why a sensor is more reliable than a fixed route.

How to use this practice path

The 24 levels build from ordered commands to for loops and then if, while and functions. If a level fails, read the highlighted line, make one edit, and rerun it.

Keep playing

More games you might like

All 116 games โ†’

FAQ

Code Jungle: questions

Is Code Jungle a good first coding game for kids?

Yes. It starts with one command, step(n), and adds one idea per level. Children from about 7 can play tier 1 with a little help; tier 3 suits ages 10 and up.

Is it real Python?

Yes. You type real Python syntax (functions, for and while loops, if, elif and else, def, variables and maths), run by a beginner-friendly Python interpreter in your browser.

What do the three tiers teach?

Tier 1 teaches sequences of commands. Tier 2 teaches for loops, loop variables and nested loops. Tier 3 teaches while loops, if/elif/else with sensors, and writing functions with def, including functions with inputs.

How are stars awarded?

Finishing a level earns at least one star. Writing it in the target number of lines (or fewer) earns three, which rewards using loops and functions instead of repeating yourself.

Is it free, and is my progress saved?

It is free with no sign-up or ads. Your stars and code are saved in your own browser on this device.

Start a conversation

Questions about classes?

A parent or guardian can share the learner's age, level and goals, and we'll suggest a starting point and confirm the format before anything is booked.

  • Tell us the learnerโ€™s age or grade and goals
  • Weโ€™ll suggest a suitable class or learning path
  • Weโ€™ll confirm format, timing and fees with a parent or guardian

For a childโ€™s class, please have a parent or guardian send the enquiry. Avoid sharing passwords or sensitive personal details.

Weโ€™ll use your details only to respond to this request.

Chat on WhatsApp
Esc

Try