Skip to content

shmup/redbean-cardgames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0c9138a Β· Aug 29, 2022

History

49 Commits
Aug 21, 2022
Aug 5, 2022
Aug 29, 2022
Aug 29, 2022
Aug 25, 2022
Aug 22, 2022
Jul 30, 2022
Aug 25, 2022
Aug 17, 2022
Aug 22, 2022
Aug 19, 2022

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