/elm-janken

The game "Rock Paper Scissors". In one version the computer plays randomly, in the second by Markov matrix.

Primary LanguageElm

The Game "Rock Paper Scissors" in Elm

Janken (じゃん拳 janken) is the Japanese equivalent of Rock Paper Scissors, but taken to a whole new level in terms of usage and importance in daily life. If there is ever a clash of opinions between two people in Japan, more often than not this potentially embarassing situation will be decided with janken.

Hopefully this will be useful to someone trying to learn Elm!

To Install/Run

You will need to have git and elm installed.

  1. Clone this repository to your local system:

    $ git clone https://github.com/jasonu/elm-janken

  2. Run elm-reactor which will automaticallly download needed Elm packages and compile the code to JavaScript:

    $ elm-reactor

  3. Open: http://localhost:8000/

  4. Click on: janken-random.elm or janken-markov.elm