Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.75 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.75 KB

Card games

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
    🂱: 🃁
    🂲: 🃂
    🂳: 🃃🂶🂹
    🂴: 🃄🂸🂽
    [🂵🂷🂺🂻] [🂾]

♡ TODO

Calculation (patience)

  • Update GameState after drag/drop (currently only updated on the DOM)
  • Fire a validate request during a dragenter or drop ? * 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

♢ Developer Documentation

♧ Lua Documentation

♤ Sqlite Documentation


Example of drag and drop

https://html.spec.whatwg.org/multipage/dnd.html#drag-and-drop-processing-model

dragging_example.mp4