You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.6KB

2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Simulator for Potato, a one-page RPG
  2. See https://twitter.com/deathbybadger/status/1567425842526945280 for details.
  3. **Potato** is a single-player, one-page RPG where you play as a halfling,
  4. farming and harvesting potatoes while the Dark Lord amasses his forces
  5. elsewhere in the world.
  6. You have three scores: DESTINY, POTATOES, and ORCS. Each round, you
  7. roll d6 to determine which type of event you experience: a day in the
  8. garden, a knock at the door, or a darkening of the world.
  9. For the first two, you then roll a second d6 to determine how your
  10. scores change; the third event makes it cost more potatoes to get rid
  11. of orcs. (At the beginning of the game, you can spend 1 potato to
  12. reduce your ORCS score by 1.) If any score reaches 10, the game ends
  13. with that score's ending; if DESTINY and ORCS reach 10 in the same
  14. round, ORCS wins, and if DESTINY and POTATOES reach 10 in the same
  15. round, you get a multi-win. (ORCS and POTATOES can never reach 10 in
  16. the same round.)
  17. When the simulator has simulated the requested number of games, it will
  18. report its results: the number and percentage of wins for each score
  19. type, and the mean and median number of rounds it took to win a game.
  20. ## Game Options
  21. ` -v, --verbose Print detailed information about each game.`
  22. ` This gets very long; probably don't use it if`
  23. ` you're asking for a large number of games!`
  24. ``
  25. ` -n, --numruns [N] The number of games to simulate. Default: 10000`
  26. ``
  27. ` -m, --multiwin Announce on the console when a game ends in a`
  28. ` multi-win. This can lead to a lot of output.`
  29. ``
  30. ` -i, --instructions Print these instructions.`
  31. ```
  32. ### Mutually Exclusive Options:
  33. ```
  34. -a, --alt Use Wanderer's algorithm for determining when
  35. to spend potatoes to reduce orcs. This spends
  36. a potato if ORCS could win this round and
  37. POTATOES could not, OR if ORCS is greater than
  38. one and a 1d10 comes up less than the ORCS
  39. score. It will only spend a potato if there
  40. are enough potatoes to spend.
  41. -p, --potatoper [N] Use the Potato-Per algorithm for determining
  42. when to spend potatoes to reduce orcs. This
  43. spends a potato when the ratio of POTATOES to
  44. ORCS rises above a certain amount, modified by
  45. the POTATOES cost to reduce ORCS by 1. It will
  46. only spend a potato if there are enough
  47. potatoes to spend.
  48. ```