Skip to content

Commit

Permalink
add state viz
Browse files Browse the repository at this point in the history
  • Loading branch information
DiesIrae committed Mar 5, 2019
1 parent c9068a7 commit 70d5ab6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/life/state-viz.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
1- Complete this
2- Copy-paste in https://statecharts.github.io/xstate-viz/
**/


const { actions } = XState
const { send, assign, raise, log, sendParent } = actions

const initialBoard = [[0, 0]]


const getCellNextState = (x, y) => {}
const updateCell = () => {}
const updateCounter = () => {}


/** Copy code from life.js below (following beacons in code)
* + make modifications
* Replace return of getAllCells by this
```
[boardCells[0][0].id]: boardCells[0][0],
[boardCells[0][1].id]: boardCells[0][1],
```
*
*/

0 comments on commit 70d5ab6

Please sign in to comment.