{"id":16547645,"url":"https://github.com/sambecker/rustwar","last_synced_at":"2026-05-11T14:33:29.726Z","repository":{"id":122424286,"uuid":"416994004","full_name":"sambecker/rustwar","owner":"sambecker","description":"Simulation designed to determine the average length (with and without shuffling) of a game of war","archived":false,"fork":false,"pushed_at":"2022-06-07T04:32:17.000Z","size":884,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T11:43:47.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/sambecker.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":"2021-10-14T05:00:19.000Z","updated_at":"2022-01-14T22:52:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"93679c5b-5674-4e01-87e7-1551d13e3aad","html_url":"https://github.com/sambecker/rustwar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sambecker/rustwar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambecker%2Frustwar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambecker%2Frustwar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambecker%2Frustwar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambecker%2Frustwar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sambecker","download_url":"https://codeload.github.com/sambecker/rustwar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambecker%2Frustwar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32899028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":[],"created_at":"2024-10-11T19:22:29.003Z","updated_at":"2026-05-11T14:33:29.699Z","avatar_url":"https://github.com/sambecker.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# War\n\nHow long does it take for a game of war to end?\n\n### Run simulation\n`cargo run`\n\n### Test simulation\n`cargo test`\n\n### Simulation output\n```\nSTARTING SIMULATION (MAX GAME LENGTH: 10000 TURNS)\nGames: 100000 [SHUFFLED  ] 233.32 (Indeterminate games: 0.00%)                  \nGames: 100000 [SHUFFLED  ] 232.75 (Indeterminate games: 0.00%)                  \nGames: 100000 [UNSHUFFLED] 565.19 (Indeterminate games: 8.15%)                  \nGames: 100000 [UNSHUFFLED] 563.28 (Indeterminate games: 8.10%)                  \nSIMULATION FINISHED (47 SECONDS)\n```\n\n### Simulation preview\n![Console animation](simulation-preview-update.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambecker%2Frustwar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsambecker%2Frustwar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambecker%2Frustwar/lists"}