{"id":18011290,"url":"https://github.com/johnnyjayjay/poker","last_synced_at":"2025-03-26T15:32:41.105Z","repository":{"id":138563225,"uuid":"266786997","full_name":"JohnnyJayJay/poker","owner":"JohnnyJayJay","description":"A functional implementation of the game mechanics of Texas hold 'em and a Discord bot to play poker in chat","archived":false,"fork":false,"pushed_at":"2023-10-15T21:21:13.000Z","size":112,"stargazers_count":14,"open_issues_count":7,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T02:03:04.624Z","etag":null,"topics":["clojure","discord","discord-bot","game","hacktoberfest","poker"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JohnnyJayJay.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-05-25T13:31:22.000Z","updated_at":"2024-03-31T08:53:48.000Z","dependencies_parsed_at":"2023-10-16T13:15:21.061Z","dependency_job_id":null,"html_url":"https://github.com/JohnnyJayJay/poker","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/JohnnyJayJay%2Fpoker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyJayJay%2Fpoker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyJayJay%2Fpoker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyJayJay%2Fpoker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnnyJayJay","download_url":"https://codeload.github.com/JohnnyJayJay/poker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245681543,"owners_count":20655215,"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":["clojure","discord","discord-bot","game","hacktoberfest","poker"],"created_at":"2024-10-30T03:08:54.144Z","updated_at":"2025-03-26T15:32:40.790Z","avatar_url":"https://github.com/JohnnyJayJay.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# poker\n\nA Clojure implementation of a poker game ([Texas Hold 'em](https://en.wikipedia.org/wiki/Texas_hold_%27em)) and a corresponding Discord bot to play poker in chat.\n\nThis is (roughly) how the logic part is used:\n\n```clojure\n(require '[poker.logic.game :as poker]\n         '[poker.logic.core :as cards])\n\n(def player-budgets {\"Alice\" 100 \"Bob\" 85})\n(def game (poker/start-game 10 (keys player-budgets) (shuffle cards/deck) player-budgets))\n\n; Available functions\n(poker/possible-moves game)\n(poker/call game)\n(poker/raise game 20)\n(poker/fold game)\n(poker/all-in game)\n```\n\nIt is currently not published as a library, only used as the backbone for the associated Discord bot.\n\n## Bot\n\n[![Discord Bots](https://top.gg/api/widget/461791942779338762.svg)](https://top.gg/bot/461791942779338762)\n\nHere are a few impressions of what it looks like:\n\n![](https://i.imgur.com/zGCQoHN.png)\n![](https://i.imgur.com/FeJTYD5.png)\n![](https://i.imgur.com/yAWQtXn.png)\n\nActive work is also being done on translating this bot. More about that at the link below.\n\nSome relevant links:\n- [Invite link](https://discord.com/api/oauth2/authorize?client_id=461791942779338762\u0026permissions=329792\u0026scope=bot) to add the public version hosted by myself to your Discord server\n- [Support server](https://discord.gg/npEXyQt) for chatter, bug reports and suggestions\n- [How to host this bot yourself](./doc/host.md)\n- [How to help with translation](./doc/i18n.md)\n\n\n## License\n\nCopyright © 2020-2022 JohnnyJayJay\n\nThis program and the accompanying materials are made available under the\nterms of the Hippocratic License 2.1 which is available at\nhttps://firstdonoharm.dev/version/2/1/license.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnyjayjay%2Fpoker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnyjayjay%2Fpoker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnyjayjay%2Fpoker/lists"}