{"id":19351529,"url":"https://github.com/opensourcedoc/craps-c","last_synced_at":"2026-06-22T10:31:56.561Z","repository":{"id":77782875,"uuid":"131269158","full_name":"opensourcedoc/craps-c","owner":"opensourcedoc","description":"Craps in C","archived":false,"fork":false,"pushed_at":"2022-02-06T13:38:55.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T10:35:43.114Z","etag":null,"topics":["c","craps-game"],"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/opensourcedoc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-27T08:33:07.000Z","updated_at":"2022-02-06T13:40:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"2337e628-8343-4eee-85ee-11aa6de2c012","html_url":"https://github.com/opensourcedoc/craps-c","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/opensourcedoc/craps-c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensourcedoc%2Fcraps-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensourcedoc%2Fcraps-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensourcedoc%2Fcraps-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensourcedoc%2Fcraps-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opensourcedoc","download_url":"https://codeload.github.com/opensourcedoc/craps-c/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensourcedoc%2Fcraps-c/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34645681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","craps-game"],"created_at":"2024-11-10T04:36:33.098Z","updated_at":"2026-06-22T10:31:56.538Z","avatar_url":"https://github.com/opensourcedoc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Craps in C\n\nThis repo demos a simple implementation of [Craps](https://en.wikipedia.org/wiki/Craps) in C.\n\n## System Requirement\n\n* A recent C compiler.\n* `make(1)`\n\nWe tested the program on recent Visual C++, GCC, and Clang.\n\nFor Windows users, you may get a `make` port at [GnuWin32](http://gnuwin32.sourceforge.net/).\n\n## Usage\n\n`craps` default to *pass* bet:\n\n```\n$ ./craps\nCome-out roll: 6 + 4 = 10\nGot 5 + 6 = 11. Try again...\nGot 2 + 6 = 8. Try again...\nGot 3 + 5 = 8. Try again...\nGot 4 + 5 = 9. Try again...\nGot 5 + 6 = 11. Try again...\nGot 2 + 1 = 3. Try again...\nGot 1 + 2 = 3. Try again...\nGot 6 + 3 = 9. Try again...\nHit: 4 + 6 = 10\nThe player wins\n```\n\nPlayers may bet on *no pass* as well:\n\n```\n$ ./craps wrong\nCome-out roll: 2 + 6 = 8\nGot 3 + 2 = 5. Try again...\nGot 6 + 4 = 10. Try again...\nSeven-out: 1 + 6 = 7\nThe player wins\n```\n\n`craps` also runs in quiet mode:\n\n```\n$ ./craps -q\nlose\n```\n\nRun `craps -h` for more usage.\n\n## Copyright\n\nCopyright (c) 2018 Michelle Chen. Licensed under MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensourcedoc%2Fcraps-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensourcedoc%2Fcraps-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensourcedoc%2Fcraps-c/lists"}