XP is just a number | |
PerlMonks |
Re: Dial up some obscure stats for the Chutes and Ladders gameby wol (Hermit) |
on Jul 02, 2009 at 10:49 UTC ( [id://776697]=note: print w/replies, xml ) | Need Help?? |
An avenue for investigation...
If a player were to keep rolling the same number, where would they wind up? As the board is a finite size, there's only two possible kinds of answer, they'd wind up going round in circles, or they'd get to the end and (as this is a game for one) win. For example, if a player keeps rolling 1, then they'd get into a loop involving ladder 28=>84 and snake/chute 87=>24. (Caution: calculated using head, not Perl.) So what are the results for rolling only 2s .. 6s? Is it possible to win the game? Which number results in the most convoluted loop? Which number carries on longest before it gets into a loop. Grr - damn this paid employment lark! I have to stop before I can actually try any of this stuff out!
--
In Section
Cool Uses for Perl
|
|