rock-paper-scissors

Rock-Paper-Scissors AI with PyGame. Utilize python libraries such as OpenCV, Tensorflow, & Keras. With additional features such as Main Menu & Real-Time Leaderboards. Built as a final project subject.

Requirements

  • Python 3
  • Keras
  • Tensorflow
  • OpenCV

Set up instructions

  1. Clone the repo.
$ git clone https://github.com/karlacahaya/Rock-Paper-Scissors-Game
$ cd rock-paper-scissors
  1. Install the dependencies
$ pip install -r requirements.txt
  1. Gather Images for each gesture (rock, paper and scissors and None): In this example, we gather 200 images for the "rock" gesture
$ python3 gather_images.py rock 200
  1. Train the model
$ python3 train.py
  1. Test the model on some images
$ python3 test.py <path_to_test_image>
  1. Play the game with your computer!
$ python3 play.py