Tim Chase on Nostr: Playing a Candyland-like game with dear daughter, we were curious how many rounds it ...
Playing a Candyland-like game with dear daughter, we were curious how many rounds it would take before someone would win.
So I cranked out a quickie C program to model the board and player positions/state (lose a turn, get an extra turn) and fired off the simulation.
Verdict after 10000 games:
With 1 solo player, it could be finished as quickly as 14 rounds and as many as 70+ (theoretically an infinite number if you keep hitting the "back to the start" square).
With 2 players, it came out between 14 and ~40 rounds pretty consistently.
With 3 players, 14–30.
With more players, that upper drops rapidly toward the lower-bound because even if lots of players have bad luck, the coin-toss balances out, so with 300 players, someone wins consistently within 15 rounds.
As a bonus, the C program regularly compiled at nearly every step along the way (which is often rare for me), and not a single segfault, out-of-bounds, or other treacherous fault. 😎
Published at
2025-01-06 22:49:58Event JSON
{
"id": "8cefea205f312b41d024eec5d54e130e764c6df9c9793679b95ee40dc4299e17",
"pubkey": "9d1fe9f29c7a1e42464c3985f7185fe112b286140d32b8586dd34c6f92d6d9ee",
"created_at": 1736203798,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.bsd.cafe/users/gumnos/statuses/113783852150084380",
"activitypub"
]
],
"content": "Playing a Candyland-like game with dear daughter, we were curious how many rounds it would take before someone would win.\n\nSo I cranked out a quickie C program to model the board and player positions/state (lose a turn, get an extra turn) and fired off the simulation.\n\nVerdict after 10000 games:\nWith 1 solo player, it could be finished as quickly as 14 rounds and as many as 70+ (theoretically an infinite number if you keep hitting the \"back to the start\" square).\n\nWith 2 players, it came out between 14 and ~40 rounds pretty consistently.\n\nWith 3 players, 14–30.\n\nWith more players, that upper drops rapidly toward the lower-bound because even if lots of players have bad luck, the coin-toss balances out, so with 300 players, someone wins consistently within 15 rounds.\n\nAs a bonus, the C program regularly compiled at nearly every step along the way (which is often rare for me), and not a single segfault, out-of-bounds, or other treacherous fault. 😎",
"sig": "4e1325df022abb01aab0d104556d1517b96b184978e147e94cb7aeb4543de8a091f3fa6e2bf8b721f41db3c2e181be9d00ab1106fcedb2014db17e5a53ec01c5"
}