TicTacToe ReasonDojo (Lviv, UA)
- You need
node@^8.0.0
. - install reason-cli
- install bs-platform
npm install -g bs-platform
- setup your editor. At the current time VSCode is recomended.
Clone this project and install all deps
git clone [email protected]:liubko/reason-dojo-tictactoe.git
npm install
npm start
// open localhost:3000
Add basic types to describe the core of the game.
type player = ...;
type field = ...;
type board = ...;
type gameState = ...;
Styles are already included.
Board.css
Field.css
Create a waterfall of components:
| <App />
|-- <Board />
|---- <Field />
Add onClick handler to <Filed />
, handle game logic.
Install bs-fetch and bs-json. Make API request and decode responses.
API: https://market.mashape.com/stujo/tic-tac-toe
- fixing any bags in game logic.
- win/lose/draw message
- ability to restart game