{"id":16722154,"url":"https://github.com/lostella/podds","last_synced_at":"2025-04-10T10:07:39.926Z","repository":{"id":11272943,"uuid":"13679147","full_name":"lostella/podds","owner":"lostella","description":"Poker odds evaluation tool, written in C, multi-threaded","archived":false,"fork":false,"pushed_at":"2023-05-30T09:16:24.000Z","size":61,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T10:54:06.234Z","etag":null,"topics":["c","command-line","multithread","odds","odds-calculator","poker","texas-holdem"],"latest_commit_sha":null,"homepage":"","language":"C","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/lostella.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":"2013-10-18T13:45:32.000Z","updated_at":"2023-04-25T01:38:29.000Z","dependencies_parsed_at":"2023-01-11T18:04:27.402Z","dependency_job_id":null,"html_url":"https://github.com/lostella/podds","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/lostella%2Fpodds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostella%2Fpodds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostella%2Fpodds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostella%2Fpodds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostella","download_url":"https://codeload.github.com/lostella/podds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198882,"owners_count":21063628,"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":["c","command-line","multithread","odds","odds-calculator","poker","texas-holdem"],"created_at":"2024-10-12T22:33:47.026Z","updated_at":"2025-04-10T10:07:39.904Z","avatar_url":"https://github.com/lostella.png","language":"C","readme":"# Podds\n\n[![Build Status](https://travis-ci.org/lostella/podds.svg?branch=master)](https://travis-ci.org/lostella/podds)\n\n`podds` is a command line tool to compute the probability of winning a (Texas hold 'em) poker round, given the number of players and the available cards.\nProbabilities are estimated by sampling random games given the available information.\n\n## Usage\n\nTo compile the program simply navigate to its directory and type `make`.\n\nTo run the program invoke\n\n```\n  ./podds \u003cn\u003e \u003ch1\u003e \u003ch2\u003e [\u003ct1\u003e ... \u003ct5\u003e]\n```\n\nHere `\u003cn\u003e` is the **total** number of players, `\u003ch1\u003e` and `\u003ch2\u003e` are the hole cards (mandatory arguments), while `\u003ct1\u003e` to `\u003ct5\u003e` are the community cards (optional, you can specify 0 to 5 of them).\n\nEach card is represented by a **case sensitive** 2-characters string, according to the following convention:\n\n* `2` to `9` = cards from 2 to 9\n* `T` = 10\n* `J`, `Q`, `K`, `A` = jack, queen, king, ace\n* `h`, `d`, `c`, `s` = hearts, diamonds, clubs, spades\n\n**Examples:** the ace of spades is `As`, the 10 of diamonds is `Td` and the 4 of clubs is `4c`.\n\nThe results are written onto `stdout`, and error messages (such as when arguments are not correctly formatted) are written to `stderr`. This way `podds` can be easily used from a higher-level interface. The output has the form: `\u003ckey\u003e:\u003cvalue\u003e` and is supposed to be self-descriptive.Typical command-line interactions look as follows:\n\n```\nbash$ ./podds 5 Ts 9d Js 8h 3c\ncores:4\ngames:200000\nwin:0.315\ndraw:0.031\npair:0.367\ntwo-pairs:0.083\nthree-of-a-kind:0.014\nstraight:0.314\nflush:0.000\nfull-house:0.000\nfour-of-a-kind:0.000\nstraight-flush:0.000\n```\n\n```\nbash$ ./podds 4 Kd Jd Qs Tc Qd\ncores:4\ngames:200000\nwin:0.406\ndraw:0.045\npair:0.291\ntwo-pairs:0.290\nthree-of-a-kind:0.051\nstraight:0.301\nflush:0.039\nfull-house:0.025\nfour-of-a-kind:0.001\nstraight-flush:0.002\n```\n\n## TODO\n\n* Implement some options (e.g.: how many cores to use, how many games to simulate).\n* Find a smart way to determine the default number of games to be simulated (e.g.: bounding the probability that results are inaccurate above some threshold).\n* Implement interactive mode (where inputs are taken from `stdin`).\n* Store results in a table (at least for short combos).\n* Make available as a library (shared object).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostella%2Fpodds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostella%2Fpodds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostella%2Fpodds/lists"}