Awesome
Tic Tac Toe in Elm
Demo URL: http://franck.verrot.fr/tictactoe-elm/
Notes
(from the initial commit 023baa8)
The most interesting part was to find how to emit a custom command by
piggybacking it on `Time.now`.
There are three events in this app:
1. `Reset`
Resets the game to its initial state
2. `BoxClicked box index`
Claim a box for a specific user, triggers `CheckWinner` when it's done
3. `CheckWinner player currentPlayerShouldChange time`
Checks for stalemate or a winner
Setup
npm install elm
: downloads Elmmake get-deps
: downloads packagesmake
: runs tests and compiles down to a single JavaScript filemake test
: runs tests only