>_ program-games.org
browse games
~/languages/python

Python programming games

8 Python games you play by writing code — ranked and reviewed.

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 — automation programming game screenshot
Automation

The Farmer Was Replaced

Offlineest. 20234.8 (526)

Program a drone to automate an entire farm. Plant, harvest, optimise — then watch your code outgrow you.

PythonAutomationOptimization
Intermediate18kView game →
Battlecode — ai competition programming game screenshot
AI Competition

Battlecode

OnlineFreeest. 20244.7 (156)

MIT’s annual AI programming competition. Command an army of bots with distributed strategy and battle other teams for the title.

JavaPythonCompetitionSeasonal
Expert3.2kView game →
CodinGame — bot arena programming game screenshot
Bot Arena

CodinGame

OnlineFreeest. 20144.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.

PythonC++Java+22PuzzlesMultiplayer
Beginner48kView game →
Robocode Tank Royale — bot arena programming game screenshot
Bot Arena

Robocode Tank Royale

OnlineFreeest. 20224.4 (88)

The modern Robocode: bots connect over WebSocket so you can write them in any language you like.

JavaC#Python+Tank AIBattle
Intermediate2.1kView game →
JOY OF PROGRAMMING — simulator programming game screenshot
Simulator

JOY OF PROGRAMMING

Offlineest. 20244.4 (176)

Write real Python to control robots, drones and machines in a physics-driven engineering sandbox.

PythonPythonRobotics
Intermediate4.6kView game →
CheckiO — code puzzles programming game screenshot
Code Puzzles

CheckiO

OnlineFreeest. 20134.4 (356)

Level up Python and JavaScript by solving puzzles, then read everyone else’s solutions to the same problem. Learn by comparing.

PythonJavaScriptLearningCommunity
Beginner17kView game →
CodeCombat — learning programming game screenshot
Learning

CodeCombat

OnlineFreeest. 20134.3 (642)

Learn Python or JavaScript by playing a top-down RPG where every move is a line of code you write.

PythonJavaScriptRPGLearning
Beginner32kView game →
Virtual Robots — robot programming programming game screenshot
Robot Programming

Virtual Robots

Offlineest. 20174 (22)

A robot-programming simulator whose stated goal is simply: write code for your robots and watch them carry out the task.

VisualPythonSimulatorRobotics
Intermediate0.7kView game →
// other languages
JavaScriptTypeScriptAssemblyJavaRustLuaC++C#VisualBlocksSQLCSS