{"id":16360063,"url":"https://github.com/frgfm/poker-buddy","last_synced_at":"2025-06-10T13:03:04.889Z","repository":{"id":110056297,"uuid":"140159457","full_name":"frgfm/poker-buddy","owner":"frgfm","description":"Poker assistant project","archived":false,"fork":false,"pushed_at":"2019-05-05T21:26:52.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-21T18:11:27.367Z","etag":null,"topics":["card","deck","game","game-theory","player","poker","statistics","texas-holdem"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frgfm.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":"2018-07-08T10:50:55.000Z","updated_at":"2020-10-01T08:11:21.000Z","dependencies_parsed_at":"2023-04-22T18:04:43.568Z","dependency_job_id":null,"html_url":"https://github.com/frgfm/poker-buddy","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/frgfm%2Fpoker-buddy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frgfm%2Fpoker-buddy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frgfm%2Fpoker-buddy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frgfm%2Fpoker-buddy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frgfm","download_url":"https://codeload.github.com/frgfm/poker-buddy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frgfm%2Fpoker-buddy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259080939,"owners_count":22802393,"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":["card","deck","game","game-theory","player","poker","statistics","texas-holdem"],"created_at":"2024-10-11T02:10:27.487Z","updated_at":"2025-06-10T13:03:04.873Z","avatar_url":"https://github.com/frgfm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Poker buddy\nThis repository hold the different parts of a poker assistant projects. \n\n\n\n## Installation\n\nThis project was only developed using Python and numpy.\n\n```\ngit clone https://github.com/frgfm/poker-buddy.git\ncd poker-buddy\npip install requirements.txt\n```\n\n\n\n## Usage\n\nIf you prefer running the simulation directly without entering a shell:\n\n```bash\npython src/main.py\n```\n\nIf you favor using objects in Python, you can use the classes and functions from the game.py file\n\n```python\nfrom game import Player, Game, get_hand_value, get_winners\nplayers = [Player() for k in range(4)]\ng = Game(players)\ng.deal()\ng.hit()\ng.hit()\ng.hit()\nhands = []\nfor k in range(4):\n    print('Player %s: %s' % (k, g.get_player_cards(k)))\n    hands.append(get_hand_value(g.community_cards + g.players[k].cards))\n    print(hands[-1])\nprint('Winner:', get_winners(hands))\n```\n\nEither way, it should simulate a game with an output similar to:\n```bash\nDealing cards to players...\nFlop: ['9 Diamonds', '6 Diamonds', 'Q Diamonds']\nTurn: ['9 Diamonds', '6 Diamonds', 'Q Diamonds', '3 Diamonds']\nRiver: ['9 Diamonds', '6 Diamonds', 'Q Diamonds', '3 Diamonds', '2 Clubs']\nPlayer 0: ['4 Spades', '10 Diamonds']\n{'royal flush': None, 'straight flush': None, 'fours': [], 'full house': None, 'flush': 'Diamonds', 'straight': [], 'threes': [], 'double pairs': [], 'pairs': [], 'high': 10}\nPlayer 1: ['5 Spades', 'A Spades']\n{'royal flush': None, 'straight flush': None, 'fours': [], 'full house': None, 'flush': [], 'straight': [], 'threes': [], 'double pairs': [], 'pairs': [], 'high': 12}\nPlayer 2: ['K Diamonds', '9 Spades']\n{'royal flush': None, 'straight flush': None, 'fours': [], 'full house': None, 'flush': 'Diamonds', 'straight': [], 'threes': [], 'double pairs': [], 'pairs': [7], 'high': 11}\nPlayer 3: ['J Spades', '10 Spades']\n{'royal flush': None, 'straight flush': None, 'fours': [], 'full house': None, 'flush': [], 'straight': [], 'threes': [], 'double pairs': [], 'pairs': [], 'high': 10}\nWinner: [2]\n```\n\n\n## TODO\n- [x] Model a Texas Holdem Poker game\n- [ ] Live computation of odds of winning depending on each player's point of view\n- [ ] Investigate card recognition from pictures\n- [ ] Investigate Reinforcement Learning to capture player decision-making profile\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrgfm%2Fpoker-buddy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrgfm%2Fpoker-buddy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrgfm%2Fpoker-buddy/lists"}