{"id":22300739,"url":"https://github.com/paladin-t/d2","last_synced_at":"2025-03-25T23:29:35.169Z","repository":{"id":77919167,"uuid":"183794082","full_name":"paladin-t/d2","owner":"paladin-t","description":"A Python implementaton of the Dou Dizhu deck game.","archived":false,"fork":false,"pushed_at":"2019-05-02T12:25:02.000Z","size":177,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-30T20:43:51.882Z","etag":null,"topics":["deck","doudizhu","poker-game"],"latest_commit_sha":null,"homepage":"https://repl.it/@hellotony/d2","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paladin-t.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-27T16:04:04.000Z","updated_at":"2023-03-06T12:07:50.000Z","dependencies_parsed_at":"2023-02-27T22:00:31.413Z","dependency_job_id":null,"html_url":"https://github.com/paladin-t/d2","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/paladin-t%2Fd2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paladin-t%2Fd2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paladin-t%2Fd2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paladin-t%2Fd2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paladin-t","download_url":"https://codeload.github.com/paladin-t/d2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245559945,"owners_count":20635468,"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":["deck","doudizhu","poker-game"],"created_at":"2024-12-03T18:13:49.874Z","updated_at":"2025-03-25T23:29:35.162Z","avatar_url":"https://github.com/paladin-t.png","language":"Python","readme":"## D2\n\n**D2** is a Python implementaton of the [Dou Dizhu](https://en.wikipedia.org/wiki/Dou_dizhu) deck game.\n\n### How to use\n\nRetrieve the repository, then execute the script to run it under terminal mode:\n\n```\ngit clone https://github.com/paladin-t/d2.git\ncd d2\n./d2.py\n```\n\nIt outputs details beneath every process by default, including your opponents' cards, which is useful for debugging. Set `Utils.isDebug` to `False` to disable the spoiling.\n\nInput the card faces separated by spaces directly to make your put, e.g. `8 9 10 j q k a` for `8♠, 9♣, 10♥, J♦, Q♣, K♥, A♦`, `:)` for 🙂 (black joker), `:D` for 😀 (red joker), etc.\n\n### How it works\n\nThe complexity of Dou Dizhu is way far simpler than most chess games. It is possible for the AI to enumerate every valid putting and pick a prior combination according to evaluation and context. The evaluation is pretty rough though, I will leave it to you to explore more possibilities.\n\nRead the only [source](d2.py) file for everything.\n\n### License\n\n[GPLv3](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaladin-t%2Fd2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaladin-t%2Fd2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaladin-t%2Fd2/lists"}