{"id":13769302,"url":"https://github.com/shmup/redbean-cardgames","last_synced_at":"2025-05-03T20:32:26.955Z","repository":{"id":53254485,"uuid":"519470024","full_name":"shmup/redbean-cardgames","owner":"shmup","description":"To become a collection of card games within a redbean","archived":false,"fork":false,"pushed_at":"2022-08-29T04:11:03.000Z","size":9470,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-03T17:07:59.717Z","etag":null,"topics":["cardgames","fullmoon","lua","mithriljs","redbean"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shmup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-30T09:11:46.000Z","updated_at":"2023-08-05T22:52:12.000Z","dependencies_parsed_at":"2022-08-27T06:21:31.518Z","dependency_job_id":null,"html_url":"https://github.com/shmup/redbean-cardgames","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shmup%2Fredbean-cardgames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shmup%2Fredbean-cardgames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shmup%2Fredbean-cardgames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shmup%2Fredbean-cardgames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shmup","download_url":"https://codeload.github.com/shmup/redbean-cardgames/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224374771,"owners_count":17300689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cardgames","fullmoon","lua","mithriljs","redbean"],"created_at":"2024-08-03T17:00:21.459Z","updated_at":"2024-11-13T01:35:03.878Z","avatar_url":"https://github.com/shmup.png","language":"JavaScript","funding_links":[],"categories":["Redbean"],"sub_categories":["Projects"],"readme":"# Card games\n\nThe idea here is to have a [redbean](https://justine.lol/redbean2/) loaded with card games, both playable in\nyour shell and in a GUI (aka your browser via localhost).\n\nStarting small, I will introduce a couple [patience games](\u003chttps://en.wikipedia.org/wiki/Patience_(game)\u003e), 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).\n\n```bash\n$ make test\n    🂱: 🃁\n    🂲: 🃂\n    🂳: 🃃🂶🂹\n    🂴: 🃄🂸🂽\n    [🂵🂷🂺🂻] [🂾]\n```\n\n## ♡ TODO\n\n#### [Calculation](\u003chttps://en.wikipedia.org/wiki/Calculation_(card_game)\u003e) (patience)\n\n-   [ ] Update GameState after drag/drop (currently only updated on the DOM)\n-   [ ] Fire a validate request during a `dragenter` or `drop` ?\n        * Kinda pointless but I wanted to toy with keeping that kinda stuff \"truly\" hidden until client needs it\n-   [ ] Handle winning (aka empty talon and empty tableaus)\n-   [ ] Handle losing (determining if a game is unwinnable)\n-   [ ] Add some cute free sounds (or make my own)\n-   [x] Render unicode playing cards instead of indexes\n-   [x] Validate placement of cards in foundations\n-   [x] Render cards in the browser\n-   [x] Add drag/drop events\n\n## ♢ Developer Documentation\n\n-   https://redbean.dev/\n-   https://github.com/pkulchenko/fullmoon/\n\n## ♧ Lua Documentation\n\n-   https://devdocs.io/lua~5.4/\n-   https://learnxinyminutes.com/docs/lua/\n\n## ♤ Sqlite Documentation\n\n-   https://devdocs.io/sqlite/\n-   https://learnxinyminutes.com/docs/sql/\n\n-----\n\n#### Example of drag and drop\n\nhttps://html.spec.whatwg.org/multipage/dnd.html#drag-and-drop-processing-model\n\nhttps://user-images.githubusercontent.com/118710/185034491-11b5eb0e-0441-4f7a-8ee5-720b699457ef.mp4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshmup%2Fredbean-cardgames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshmup%2Fredbean-cardgames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshmup%2Fredbean-cardgames/lists"}