Skip to content
Rock Paper Scissors with a virtual agent using neural nets
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
src/main
LICENSE
README.md
build.gradle
settings.gradle

README.md

RockPaperScissors

Demo gif

Virtual game of rock paper scissors, using a camera!

This repository contains the source code for training the feed-forward neural network using the Encog library, as well as the GUI as seen above.

Installation

First clone the repository using:

git clone https://github.com/maheratashfaraz/RockPaperScissors.git

Gradle is used to install most of the dependencies, however OpenCV is also required.

To install gradle, follow the guide here.

Once gradle is installed, in the project directory run gradle build clean.

To install openCV, this depends on your IDE. For basic install instructions for eclipse follow here.

Training

To train a new neural network, first set the correct file paths for the training data in Train.java. Running this script will train a new neural network for you to use in for recognition.

GUI

To run the GUI, run the GUIMain.java. If you changed the name of the neural network file, you must change the file path at the top of the class.

You can’t perform that action at this time.