Skip to content

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.

Notifications You must be signed in to change notification settings

newdevon/Python-Game-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Game Library

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!

Installation/Requirements

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

Demo/Usage

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 |   |
- + - + -
  |   |

Contributing

Forks and Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages