Skip to content

arifikhsan/batu-gunting-kertas-nuxt

Repository files navigation

Rock Paper Scissors Game with Artificial Intelligence

Demo

http://rockpaperscissors-ai.now.sh/

What is this?

This is a paper scissors rock game created using artificial intelligence.

This game can read the players' patterns to determine the steps the AI will take in order to win.

Built with Nuxt JS & Tailwind CSS framework.

Screensot

image

How to play?

  1. You can start the game by selecting "rock", "scissors" or "paper".
  2. Choose continuously until you create a pattern.
  3. Examples of patterns:
    • Rock, rock, rock, rock, etc.
    • Rock, scissors, rock, scissors, etc.
    • Rock, scissors, paper, rock, scissors, paper, etc.
    • Paper, paper, paper, paper, etc.
  4. See that you will lose.

Build setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate

For detailed explanation on how things work, check out Nuxt.js docs.