Should you want to "play" this game, head over to https://bataille.netlify.app
Game rules: https://en.wikipedia.org/wiki/War_(card_game)
Tech demo using XState and React.
The finite state machine code can be found in the machine folder and the react app code can be found in the app folder.
Run yarn
in a terminal in this folder.
Run yarn web
in a terminal in this folder.
The application is served on http://localhost:9000
The interface is quite barebone for now.
Should you care to allow popups on this page, a new tab allowing you to visualize the state machine live will open!
If you're using VS Code and the remote container extension, a dev container is available.
Run yarn build
in a terminal in this folder.