RichardMarks / coin-collector-mobile

MIT License
0 stars 1 forks source link

implement board logic #13

Closed RichardMarks closed 6 years ago

RichardMarks commented 6 years ago

Per the design specifications, we need to implement the logic for the game's board.

the game consists of a 2D board of 10 x 10 tiles each tile can be one of dirt, a pit, a coin, or a stone covering either dirt, a pit or a coin at the start, all tiles are the stone tile when you click on a stone tile, it changes to reveal either dirt, a coin or a pit if the tile revealed is dirt, you continue playing if the tile revealed is a pit, you lose a life if the tile revealed is a coin, you may then click on the coin to collect it, which changes the tile to dirt

we need to handle how to transition each cell in the board through it's possible "states"

The transition tree is