forked from DiesIrae/xstate-game-of-life
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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], | ||
``` | ||
* | ||
*/ | ||
|