franckverrot / tictactoe-elm

Tic Tac Toe with Elm

Home Page:http://franck.verrot.fr/tictactoe-elm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. npm install elm : downloads Elm
  2. make get-deps : downloads packages
  3. make : runs tests and compiles down to a single JavaScript file
  4. make test : runs tests only

About

Tic Tac Toe with Elm

http://franck.verrot.fr/tictactoe-elm/


Languages

Language:JavaScript 92.2%Language:Elm 7.2%Language:CSS 0.4%Language:HTML 0.1%Language:Makefile 0.1%