Skip to content

shmup/redbean-cardgames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

To become a collection of card games within a redbean

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published