Closed RichardMarks closed 6 years ago
We need to build a system for fetching and updating the state of the game which the rest of the code can use.
state should be a single source of truth and be immutable directly but updatable via the procedures that are exported
how this is implemented is up to the developer who takes on this assignment
what is needed is a public API that allows the following functionality
[ ] - get a read-only snapshot of the current state [ ] - update the current state with new data
We need to build a system for fetching and updating the state of the game which the rest of the code can use.
state should be a single source of truth and be immutable directly but updatable via the procedures that are exported
how this is implemented is up to the developer who takes on this assignment
what is needed is a public API that allows the following functionality
[ ] - get a read-only snapshot of the current state [ ] - update the current state with new data