{"id":51772700,"url":"https://github.com/siom79/ludo-simulator","last_synced_at":"2026-07-20T03:33:02.294Z","repository":{"id":366382657,"uuid":"1275166693","full_name":"siom79/ludo-simulator","owner":"siom79","description":"A simple ludo simulator","archived":false,"fork":false,"pushed_at":"2026-06-21T15:28:36.000Z","size":38,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-21T16:21:43.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siom79.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-20T10:39:59.000Z","updated_at":"2026-06-21T15:18:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/siom79/ludo-simulator","commit_stats":null,"previous_names":["siom79/ludo-simulator"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/siom79/ludo-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siom79%2Fludo-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siom79%2Fludo-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siom79%2Fludo-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siom79%2Fludo-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siom79","download_url":"https://codeload.github.com/siom79/ludo-simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siom79%2Fludo-simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35672442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"ssl_error","status_checked_at":"2026-07-20T02:08:09.736Z","response_time":111,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-07-20T03:33:01.510Z","updated_at":"2026-07-20T03:33:02.286Z","avatar_url":"https://github.com/siom79.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ludo-simulator\n\nA command-line simulator for the board game Ludo (\"Mensch ärgere Dich\nnicht\"). It plays a large number of automated games between configurable\nmove-selection strategies and reports win rates and game-length statistics, so you can\ncompare how different movement strategies and rule variants affect a\nplayer's chances of winning.\n\nFor a detailed description of the board model, rules, strategies, and\nengine, see [spec.md](spec.md).\n\n## Building\n\nRequires JDK 21 and Maven.\n\n```\nmvn package\n```\n\nThis compiles the project, runs the test suite, and produces a runnable\njar at `target/ludo-simulator-0.1.0-SNAPSHOT.jar`.\n\n## Running\n\n```\njava -jar target/ludo-simulator-0.1.0-SNAPSHOT.jar [OPTIONS]\n```\n\nRun with no options to simulate 1000 games of 1 self player against 3\nrandom-strategy opponents under the standard rule set. Use `--help` to\nprint the full list of options:\n\n```\njava -jar target/ludo-simulator-0.1.0-SNAPSHOT.jar --help\n```\n\n### Example\n\nRun 5000 games where you play `CAPTURE_PRIORITY` (falling back to\n`FURTHEST_FIRST`) against two `DEFENSIVE` opponents and one `RANDOM`\nopponent, with a fixed seed for reproducible results:\n\n```\njava -jar target/ludo-simulator-0.1.0-SNAPSHOT.jar \\\n  --opponents 3 \\\n  --strategy-self CAPTURE_PRIORITY:FURTHEST_FIRST \\\n  --strategy-opponents DEFENSIVE,DEFENSIVE,RANDOM \\\n  --runs 5000 \\\n  --seed 42\n```\n\n### Options\n\n| Option | Default | Description |\n|---|---|---|\n| `--opponents \u003c1-3\u003e` | `3` | Number of opponents. |\n| `--strategy-self \u003cNAME[:FALLBACK]\u003e` | `RANDOM` | Strategy for the self player. |\n| `--strategy-opponents \u003cNAME[:FALLBACK][,...]\u003e` | `RANDOM` | One entry (applied to all opponents) or exactly as many comma-separated entries as `--opponents`. |\n| `--rule-exit-only-on-six \u003cbool\u003e` | `true` | A token may only leave home on a roll of 6. |\n| `--rule-mandatory-capture \u003cbool\u003e` | `false` | Capturing moves are mandatory when available. |\n| `--rule-extra-turn-on-six \u003cbool\u003e` | `true` | Rolling a 6 grants an extra turn. |\n| `--rule-three-sixes-forfeit \u003cbool\u003e` | `true` | Three consecutive 6s forfeit the turn. |\n| `--rule-no-skipping-in-goal \u003cbool\u003e` | `true` | A token cannot skip over the player's own tokens in the goal lane. |\n| `--runs \u003cN\u003e` | `1000` | Number of simulated games. |\n| `--seed \u003clong\u003e` | _(random)_ | Optional base seed for reproducible results. |\n| `--help`, `-h` | | Show usage. |\n\nValid strategy names: `RANDOM`, `FURTHEST_FIRST`, `NEAREST_FIRST`,\n`CAPTURE_PRIORITY`, `DEFENSIVE`, `EXIT_PRIORITY`.\n\n## Running without a local build\n\nThe repository includes a GitHub Action (\"Run Ludo Simulator\") that builds\nthe jar and runs it with options entered through the GitHub Actions UI —\ntrigger it from the **Actions** tab via \"Run workflow\". The simulation\nreport is printed in the job log and in the run's summary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiom79%2Fludo-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiom79%2Fludo-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiom79%2Fludo-simulator/lists"}