Games Made with Python (Famous Ones and Ones You Can Make)

Well-known games that use Python include World of Tanks, The Sims 4, Battlefield 2, Civilization IV, Mount & Blade, Toontown Online and Doki Doki Literature Club!. In most big games Python runs the game logic, scripting or mods while a faster engine draws the graphics. Smaller games, like the 20 on this site, are written entirely in Python.

People ask "what games are made with Python?" for two different reasons: to see whether Python is used in real games, and to find games they can make with it themselves. This page answers both.

Famous games made with Python

Each game below uses Python in a documented way. The "how" column matters: very few big games are written only in Python, but many rely on it.

GameHow it uses PythonSource
World of TanksPython handles most of the game's taskssource
The Sims 4Uses Python, and script mods for the game are written in Python toosource
Battlefield 2All of the game's add-ons are written in Pythonsource
Civilization IVPython is embedded as a scripting language, used for maps and modssource
Mount & BladeGame logic, quests and data are scripted in Pythonsource
Toontown OnlineWritten in Python, with graphics from the Panda3D enginesource
Pirates of the Caribbean OnlineWritten in Python, with graphics from Panda3Dsource
Doki Doki Literature Club!Made with Ren'Py, a visual novel engine built on Python and pygamesource
Frets on FireAn open-source music game written in Python with pygamesource
Vega StrikeAn open-source space simulator that uses Python for its internal scriptingsource

How big games use Python

A large game is usually split into two layers. The engine (graphics, physics, sound) is written in a fast language like C++. The game logic (quests, rules, AI behaviour, menus, mods) is often written in a scripting language, because it changes all the time and needs to be quick to write. Python is a popular choice for that second layer, which is why it turns up in so many games without being "the" language of the game.

Open-source games let you read the real code. Frets on Fire (a pygame music game) and Vega Strike (a space simulator that uses Python for scripting) are well-known examples, and the pygame and Ren'Py communities share thousands of smaller games. Reading code from finished games is a great next step once you can build simple ones yourself.

Easy games to code in Python, ranked by difficulty

These are complete games written entirely in Python, ordered from easiest to hardest. Every one plays in your browser and comes with its full code, a step-by-step build and three checked coding challenges.

Beginner: your first Python games

Only print(), input(), variables, if and simple loops.

Easy: lists, strings and dictionaries

Medium: grids, recursion and algorithms

Games to make in Python next

Finished the list? These projects reuse what you've learned and stretch it a little further:

For tools and engines, see making games with Python.

Frequently asked questions

What games are made with Python?

World of Tanks, The Sims 4, Battlefield 2, Civilization IV, Mount & Blade, Toontown Online, Pirates of the Caribbean Online, Doki Doki Literature Club! and Frets on Fire all use Python, usually for game logic, scripting or mods.

Was Minecraft made with Python?

No. Minecraft Java Edition is written in Java and Bedrock Edition in C++. A Python API exists for some editions (for example on the Raspberry Pi), which is why the two are often linked.

Are any popular games written entirely in Python?

Yes, mostly smaller and indie games: visual novels made with Ren'Py, pygame games such as Frets on Fire, and Panda3D games like Toontown Online. Big commercial games usually use Python for scripting alongside a C++ engine.

What are easy games to code in Python?

A number guessing game, coin flip, rock paper scissors, a story game and higher or lower are the easiest. Hangman, Tic Tac Toe and a quiz are good next steps.

Can I make a game like these with Python?

You can make smaller versions of many of them. Start with console games, then use pygame for 2D graphics or Ren'Py for story games.