Python Game library is a small curated collection of GUI and command-line games. With well known classics such as Pong, Connect 4, Tic-Tac-Toe, Rock-Paper-Scissors, and more.
NEW: Pong has now been added to the library, Pong can be played with another person with the (W/S) or (Up/Down) keys!
Use the package manager pip to install Pygames and Numpy. Virtual environment recommended.
pip install -r requirements.txt
# OR
python3 -m pip install -U pygame --user
pip install numpy
To see if Pygame works, run one of the included examples:
python3 -m pygame.examples.aliens
cd Games
python app.py
Welcome to the Python Game Library C:
We have Pong, Connect 4, Tic-Tac-Toe, Number Guesser, Reaction Time, and Rock-Paper-Scissors
Which game would you like to play?
(1) Connect 4
(2) Tic-Tac-Toe
(3) Number Guesser
(4) Reaction Time
(5) Rock-Paper-Scissor 1v1
(6) Rock-Paper-Scissor vs Ai
(7) Pong
Your choice? 2
Welcome to Tic Tac Toe!
| |
- + - + -
| |
- + - + -
| |
X's turn to move
Where would you like to move? (1-9): 1
X | |
- + - + -
| |
- + - + -
| |
O's turn to move
Where would you like to move? (1-9): 4
X | |
- + - + -
O | |
- + - + -
| |
Forks and Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.