Git Product home page Git Product logo

redbean-cardgames's Introduction

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

redbean-cardgames's People

Contributors

shmup avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.