🌐
DEV Community
dev.to › unitybuddy › 5-python-games-with-source-code-3g2b
5+ Python Games With Source Code - DEV Community
October 24, 2021 - Python is a great programming language for Game development, which makes it more popular. Since Python is easy to use and understand, game developers choose Python for making (small) games just like Snake game, Air Strike, Ninja run, etc. So here are 7 unique and simple games made with Python.
🌐
GitHub
github.com › grantjenks › free-python-games
GitHub - grantjenks/free-python-games: Free Python Games · GitHub
Any of the listed games may be played by executing the Python module from the command-line. To reference the Python module, combine "freegames" with the name of the game. For example, to play the "snake" game run: ... Games can be modified by copying their source code.
Author   grantjenks
Discussions

Any open source games written in Python? Ideally, something being actively developed
You can search on github. RenPy is popular. Note that the game engine itself is likely not pure Python and Python is used as the scripting/glue layer. Commercially there are few cases of Python being used in the scripting layer but overall it's non-existent and eve PyGame doesn't come anywhere close to the size of Unity or Unreal Engine community size, amount of resources (and job offers). More on reddit.com
🌐 r/Python
51
161
December 1, 2022
101 Python BASIC Games
Nice! I think my dad used to have one of these books (for ZX Spectrum). I think you should avoid having executable code on the level of the module (e.g. parser = argparse.ArgumentParse ) - put it in main() and run it if __name__ == "__main__": Try to avoid using global. Perhaps refactor your code to use classes, and one of these classes could store the whole state of the game (= the maze, counters...), and be passed around. Unfortunately, verifying if your maze-generation algorithm works would take too much time :( I don't think you need to guarantee that each cell of the grid is reachable, just if you can reach the exit starting from the entrance (one of entrances?) using Depth-First-Search. But if you can't, then what? Will you break some random walls and check again? Or regenerate the whole maze from scratch? Even if your maze is stored in a 2-dimensional char array with # as walls and spaces as rooms, it can still be treated as a graph and be eligible for standard traversal algorithms - it's just a different representation of graph nodes. More on reddit.com
🌐 r/learnpython
22
43
September 23, 2024
How complex a game can you build in Python?
I mean hypothetically it's infinite. Eventually you will need libraries likely coded in something like C or need to use something like Vulkan to render the game. And the performance hit would be massive. But even Unreal Engine 4 has a plugin that let's you write your game in Python. Your racing game idea would be possible although I am unsure what engines to reccomend for development as I only work in Unreal Engine. More on reddit.com
🌐 r/learnpython
55
183
April 22, 2023
Are there any free open-source games written in Python?

Frets on Fire is one.

More on reddit.com
🌐 r/learnpython
7
16
April 10, 2014
People also ask

What Python version do I need to run this game?
Python 3.8 or newer works. We recommend Python 3.11 or 3.12 because Pygame ships pre-built wheels for those versions (faster pip install, no compilation errors). Python 3.13 may need a slightly older Pygame release because some wheels lag the latest CPython. Verify your version with python --version on Windows or python3 --version on Mac/Linux.
🌐
itsourcecode.com
itsourcecode.com › home › code for games in python: free python games source code
Code For Games in Python: Free Python Games Source Code 2026
What can I build with Pygame beyond simple games?
Pygame is more flexible than its reputation suggests. Beyond classic games, you can build: visualization tools (sorting algorithms, pathfinding demos for capstone Chapter 3), educational simulations (physics demos for tutoring apps), kiosks (museum or trade-show interactive displays), simple animation studios (for short looping videos), and even mini-IDEs. Anything that needs real-time rendering or animation but does not need a full web stack.
🌐
itsourcecode.com
itsourcecode.com › home › code for games in python: free python games source code
Code For Games in Python: Free Python Games Source Code 2026
How do I install Pygame for this project?
Run pip install pygame in your terminal (Windows: open Command Prompt, Mac/Linux: open Terminal). On Windows, if pip is not recognized, try python -m pip install pygame instead. On Linux, you may need sudo apt install python3-pygame if pip fails. Verify with python -c "import pygame; print(pygame.version.ver)".
🌐
itsourcecode.com
itsourcecode.com › home › code for games in python: free python games source code
Code For Games in Python: Free Python Games Source Code 2026
🌐
Itsourcecode
itsourcecode.com › home › code for games in python: free python games source code
Code For Games in Python: Free Python Games Source Code 2026
1 month ago - This Best code for game in python projects for beginners will give you a 100% FREE python game projects with source code. DOWNLOAD NOW!
🌐
Code-Projects
code-projects.org › home › simple python games with source code
Simple Python Games With Source Code - Source Code & Projects
February 29, 2024 - This program implement the game for one/two player for TICTACTOE and only one for STONEPAPERSCISSORS. All the playing rules are the same just like we play in real time tic-tac-toe and rock paper sccissors. This game is simply in command line.
🌐
Edopedia
edopedia.com › blog › python-games-source-code
35 Open Source Python Games Code Free Download [cy]
September 16, 2025 - In this blog, I will reveal a collection of open-source Python games. As the source code of these games is publicly available, so you have the opportunity to examine it in order to understand their inner working.
🌐
Source Code Tester
sourcecodester.com › tags › python-game
Python Game | SourceCodester
Ludo Game in Python with Source Code - A Python game application designed for two or more players to enjoy a competitive game of Ludo board. The rules are simple: players must roll a die to determine the first mover, with the player rolling the highest number earning the privilege.
🌐
Source Code Tester
sourcecodester.com › blog › 14862 › 15-best-python-game-project-ideas-easy-learning.html
15 Best Python Game Project Ideas for Easy Learning | SourceCodester
The Snake Game with Source Code is a single-player game where the player must get food that pops out in the board window. The game is very crucial and fun in every aspect, the player must get food in order to receive a score.
Find elsewhere
🌐
Reddit
reddit.com › r/python › free open source python games
r/Python on Reddit: Free Open Source Python Games
November 30, 2022 - I made a free browser game where you learn Python by actually writing code — no installs, no setup, just a broken farm and an empty editor ... My first major Python project! Made with 100% python using pygame. Source code and download in comments.
🌐
Boss Coder Academy
bosscoderacademy.com › blog › python-projects-ideas-source-code
Top 15 Python Projects with Source Code 2026
Rock, Paper, Scissors Game The Rock, Paper, Scissors Game is a fun Python game project with source code where users compete against the computer, like the traditional game that we used to play during childhood.
🌐
Harisystems
harisystems.com › trending › python_games.php
Python games with source code | Online Courses Learn Anywhere by Harisystems
In this code, we import the Pygame module and initialize it. We set up the game window with a specified width and height, and we create a game loop that runs as long as the "running" variable is True. Inside the game loop, we handle events, update the game state, and render graphics. In this example, we simply fill the window with black color and update the display using pygame.display.flip(). Finally, we quit Pygame when the game loop exits. Python provides a great platform for game coding, whether you're interested in creating simple text-based games or more complex graphical games.
🌐
Reddit
reddit.com › r/python › any open source games written in python? ideally, something being actively developed
Any open source games written in Python? Ideally, something being actively developed : r/Python
December 1, 2022 - Novelty in games is crucial to my interest - not just the high level concept, but in the execution. ... Came here to recommend this. It's not "open source" but anyone can freely look at all of the code. ... Evennia - https://www.evennia.com - Engine for making MUDs in Python!
🌐
PyPI
pypi.org › project › gamesbyexample
gamesbyexample · PyPI
A collection of games (with source code) to use for example programming lessons. ... A collection of Python 3 source code for simple, text-based games & simulations to use as example programs.
      » pip install gamesbyexample
    
Published   Dec 30, 2020
Version   2020.12.30
🌐
AskPython
askpython.com › python › examples › easy-games-in-python
Easy Games in Python - AskPython
April 20, 2026 - Python makes game development surprisingly accessible. With just the standard library and a couple of small modules, you can build playable games in under 100 lines of code each.
🌐
GitHub
github.com › itspyguru › Python-Games
GitHub - itspyguru/Python-Games: A collection of small python games made by me using pygame and tkinter libraries · GitHub
This repository contains a collection of small python games made by me using turtle, tkinter and pygame library.
Author   itspyguru
🌐
CodeWithCurious
codewithcurious.com › home › jungle dash game using python with source code using pygame
Jungle Dash Game Using Python With source code using Pygame - CodeWithCurious
October 14, 2024 - Jungle Dash Game Using Python With source code using Pygame, this game includes complete python source code and you can easily runt this game
🌐
GitHub
github.com › SanjayKotabagi › 50-Games-Using-Python
GitHub - SanjayKotabagi/50-Games-Using-Python · GitHub
cd 50-Python-Games/GameName Run the Python script for that game python game_name.py Note: Some games may have additional dependencies or setup instructions mentioned within their respective directories.
Starred by 12 users
Forked by 23 users
Languages   Python
🌐
Amanxai
amanxai.com › home › all articles › 82 python projects with source code
82 Python Projects with Source Code | Aman Kharwal
June 26, 2021 - If you’re a newbie to Python where you’ve just learned lists, tuples, dictionaries, and some basic Python modules like the random module, here are some Python projects with source code for beginners for you: Real-Time Currency Converter · FizzBuzz Algorithm · Extract Keywords with Python · Read Data From Google Sheets with Python · Invoice Generator with Python · Text-Based Adventure Game ·
🌐
Invent with Python
inventwithpython.com › pygame
Making Games with Python & Pygame - Invent with Python
Making Games with Python & Pygame covers the Pygame library with the source code for 11 games. Making Games was written as a sequel for the same age range as Invent with Python.
🌐
itch.io
itch.io › games › tag-python › tag-sourcecode
Top games tagged python and sourcecode - itch.io
Find games tagged python and sourcecode like Sightline, DIRECTIONDUNGEON!, Ringshot, deathlock jam version, WASD Painter on itch.io, the indie game hosting marketplace. Products that involve or comprise source code, including programming games; does not refer to products with their own so
🌐
Grant Jenks
grantjenks.com › docs › freegames
Free Python Games — Free Python Games 2.5.3 documentation
Any of the listed games may be played by executing the Python module from the command-line. To reference the Python module, combine “freegames” with the name of the game. For example, to play the “snake” game run: ... Games can be modified by copying their source code.