Skip to content

A rock, paper, scissors game using artificial intelligence as the computer player. The program will remember patterns and make moves based on your historical moves

License

Notifications You must be signed in to change notification settings

milsaware/Javascript-AI-Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Javascript AI Rock Paper Scissors

Demo

The game can be played on GitHub by clicking here

Installation

No installation

Just open the index file in your browser to play.

Controls

Click on your choice and wait for the computer to take its turn. I've slowed the time between player and computer choice to draw out the game a bit, but by modifying the timeout in the app.js script, you can control the length of time between plays.

The AI will remember patterns and make moves based on your historical moves.

Created using brain.js for the AI.

Screenshots

Javascript AI Rock Paper Scissors screenshot 1 Javascript AI Rock Paper Scissors screenshot 2 Javascript AI Rock Paper Scissors screenshot 3