Readable and forgiving. The best on-ramp for puzzle-solving, AI competitions and learning to think in code. This page focuses on games where Python is part of the actual play loop: you write scripts, solve puzzles, control bots or build systems instead of only reading a lesson.
Start with The Farmer Was Replaced, Battlecode and CodinGame if you want bot arena, ai competition and automation. The mix currently leans intermediate and beginner, so use the ratings and difficulty labels to choose a first game that matches your comfort level.
For learners, the useful question is not just “does this game support Python?” It is whether the game gives feedback you can reason about: a bot decision, a failing puzzle, a resource loop, a layout rule or a simulation that exposes what your code did wrong.
We keep the list narrow on purpose. If a game only mentions Python in a side feature, it belongs in the full catalog, not here. The goal is to help you find practice where the language matters to the core loop, with enough context to compare options before opening each review.
Below are the 8 Python programming games we track, ranked by rating. Browse the full catalog →

The Farmer Was Replaced
OfflinePaidest. 2023★4.8 (526)Program a drone to automate an entire farm. Plant, harvest, optimise — then watch your code outgrow you.

Battlecode
OnlineFreeest. 2024★4.7 (156)MIT’s annual AI programming competition. Command an army of bots with distributed strategy and battle other teams for the title.

CodinGame
OnlineFreeest. 2014★4.6 (1204)Solve puzzles and fight other players’ bots in real-time arenas. Write in 25+ languages and watch your code play out as an animated game.

Robocode Tank Royale
OnlineFreeest. 2022★4.4 (88)The modern Robocode: bots connect over WebSocket so you can write them in any language you like.

JOY OF PROGRAMMING
OfflinePaidest. 2024★4.4 (176)Write real Python to control robots, drones and machines in a physics-driven engineering sandbox.

CheckiO
OnlineFreeest. 2013★4.4 (356)Level up Python and JavaScript by solving puzzles, then read everyone else’s solutions to the same problem. Learn by comparing.

CodeCombat
OnlineFreeest. 2013★4.3 (642)Learn Python or JavaScript by playing a top-down RPG where every move is a line of code you write.

Virtual Robots
OfflinePaidest. 2017★4 (22)A robot-programming simulator whose stated goal is simply: write code for your robots and watch them carry out the task.