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.
| Game | How it uses Python | Source |
|---|---|---|
| World of Tanks | Python handles most of the game's tasks | source |
| The Sims 4 | Uses Python, and script mods for the game are written in Python too | source |
| Battlefield 2 | All of the game's add-ons are written in Python | source |
| Civilization IV | Python is embedded as a scripting language, used for maps and mods | source |
| Mount & Blade | Game logic, quests and data are scripted in Python | source |
| Toontown Online | Written in Python, with graphics from the Panda3D engine | source |
| Pirates of the Caribbean Online | Written in Python, with graphics from Panda3D | source |
| Doki Doki Literature Club! | Made with Ren'Py, a visual novel engine built on Python and pygame | source |
| Frets on Fire | An open-source music game written in Python with pygame | source |
| Vega Strike | An open-source space simulator that uses Python for its internal scripting | source |
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.
- Game code: World of Tanks uses Python for most of its tasks.
- Add-ons and mods: Battlefield 2's add-ons and The Sims 4's script mods are written in Python.
- Whole games on Python engines: Toontown Online and Pirates of the Caribbean Online were written in Python on Panda3D; Doki Doki Literature Club! uses Ren'Py.
Popular open-source games written in Python
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.
- #02☆☆☆
Rock Paper Scissors in Python
Learn The random module, Dictionaries and if, elif and else.
- #05☆☆☆
Number Guessing Game in Python
Learn The random module, while loops and if, elif and else.
- #07☆☆☆
Mad Libs-Style Story Game in Python
Learn input() and print(), Strings and Variables.
- #14☆☆☆
Higher or Lower Game in Python
Learn The random module, while loops and if, elif and else.
- #16☆☆☆
Coin Flip in Python
Learn The random module, for loops and Variables.
- #18☆☆☆
Python Quiz Game
Learn Dictionaries, Lists and for loops.
- #19☆☆☆
Math Quiz Game in Python
Learn The random module, Dictionaries and for loops.
Easy: lists, strings and dictionaries
- #01☆☆☆
Tic Tac Toe in Python
Learn Lists, Functions and if, elif and else.
- #04☆☆☆
Hangman in Python
Learn Strings, Lists and while loops.
- #08☆☆☆
Text Adventure Game in Python
Learn Dictionaries, Strings and while loops.
- #12☆☆☆
Battleship-Style Game in Python
Learn 2D lists and grids, The random module and Strings.
- #15☆☆☆
Word Guessing Game in Python
Learn Strings, Lists and Dictionaries.
- #17☆☆☆
Turtle Race in Python
Learn Turtle graphics, Lists and for loops.
- #20☆☆☆
Typing Speed Game in Python
Learn Strings, Functions and for loops.
Medium: grids, recursion and algorithms
- #03☆☆☆
Snake Game in Python (Turtle)
Learn Turtle graphics, Lists and Functions.
- #06☆☆☆
Pong-Style Paddle Game in Python
Learn Turtle graphics, Functions and if, elif and else.
- #09☆☆☆
Connect Four-Style Game in Python
Learn 2D lists and grids, Lists and Functions.
- #10☆☆☆
Minesweeper-Style Game in Python
Learn 2D lists and grids, Functions and for loops.
- #11☆☆☆
Sudoku in Python
Learn 2D lists and grids, Functions and for loops.
- #13☆☆☆
Maze Game in Python
Learn 2D lists and grids, Functions and Lists.
Games to make in Python next
Finished the list? These projects reuse what you've learned and stretch it a little further:
- A platformer with pygame: gravity is just a speed that grows every frame (the same idea as the ball in Paddle Ball).
- A two-player Tic Tac Toe over the network with the
socketmodule. - A visual novel in Ren'Py using your text adventure rooms as scenes.
- An unbeatable Tic Tac Toe with the minimax algorithm.
- A maze game with enemies that chase you using the breadth-first search from Maze Runner.
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.