Game development by the PythonLearning Reddit community.
I want your help to make this a fun Python game. It's purely educational, an opportunity to learn about:
- Python
- (quick and dirty) Object Oriented Programming
- PyGame
- Teamwork using GIT
This should be accessible for Python students how are comfortable with loops, functions, and classes.
- https://github.com/bterwijn/pythonlearninggame (this repo)
- First play the game.
- Then see instructions to make and submit changes.
We review submitted code changes for safety, but we can't guarantee no malicious code was introduced. We are not responsible for any damages as a result of running code in any of these forks. For proper safety, run this game:
- In a Docker container or virtual machine (best isolation)
- In a separate user account with limited permissions
- After reviewing the source code yourself
First install GIT:
- Linux: https://git-scm.com/download/linux
- MacOS: https://git-scm.com/download/mac
- Windows: https://git-scm.com/download/win
In a terminal:
git clone https://github.com/bterwijn/PythonLearningGame.git # or other forkThis will:
- Create and activate a virtual environment
- Install all dependencies
Open a terminal in the project folder and run:
bash setup.shDouble-click setup.bat in the project folder.
If double-clicking doesn't work:
- Open Command Prompt (
cmd.exe) - Navigate to the project folder:
cd path\to\PythonLearningGame - Run:
setup.bat
Run the game:
python main.pyWhen you're done:
deactivateSee these instructions to make and submit changes to this game. Happy coding!
