The idea here is to have a redbean loaded with card games, both playable in your shell and in a GUI (aka your browser via localhost).
Starting small, I will introduce a couple patience games, followed up by 2+ player games against an AI. With those in place, I can consider handling wetware multiplayer (though maybe only in the GUI).
$ make test
🂱: 🃁
🂲: 🃂
🂳: 🃃🂶🂹
🂴: 🃄🂸🂽
[🂵🂷🂺🂻] [🂾]
Calculation (patience)
- Update GameState after drag/drop (currently only updated on the DOM)
- Fire a validate request during a
dragenter
ordrop
? * Kinda pointless but I wanted to toy with keeping that kinda stuff "truly" hidden until client needs it - Handle winning (aka empty talon and empty tableaus)
- Handle losing (determining if a game is unwinnable)
- Add some cute free sounds (or make my own)
- Render unicode playing cards instead of indexes
- Validate placement of cards in foundations
- Render cards in the browser
- Add drag/drop events
https://html.spec.whatwg.org/multipage/dnd.html#drag-and-drop-processing-model