This a little code challenge that I took a while ago.
You can check it out live here.
What you can do:
- Multiplayer capability.
- It can persist the user preferences.
- You can see the history of games played order by difficulty and time.
- Build your custom grid.
You can set the amount of players you want. Once a player uncovers a square, then is the next player's turn. But, it only makes real sense to have two players at most. If not, you're just determining who didn't won.
Simply by storing all the state serialized in localStorage through a
middleware called storeStateMiddleware
that you can find in src/storage.js
.
- Use web workers to allow offline capability.
- Do coverage testing.