Lucky Lenny Learning

Farkle tools for the job — local exercise recipe

This week is not graded. Use a nickname, never your real name.

Start Command Prompt in the extracted farkleclass folder: cd studentkit py -3 checksetup.py py -3 tracemyrule.py py -3 tooltour.py py -3 compare.py py -3 compare.py --seed-start 40100

On Windows you can also double-click checksetup.bat, runtour.bat, or run_compare.bat. Each keeps the window open so you can read errors.

To try a change in the local exercise:

  1. In my_bot.py, change the 300 threshold (or add one condition).
  2. Run py -3 compare.py --games 100.
  3. Keep the game count and seed fixed, then compare wins, losses, ties,

games per second, and the 95% interval.

  1. Try py -3 compare.py --seed-start 40100. This compares your rule with R5;

it does not compare with bank-at-300. A different seed can change the result because dice are random. The judged Friday seeds are blocked automatically.

  1. The tour trains the learned tool once before timing games. It prints its

preparation time separately from play time. The tour uses fresh practice seeds and prints live measurements. The JSON file records older small lab practice runs; it does not prove a general result about language models.

Files: mybot.py is your one-rule strategy blank. compare.py plays your rule against R5 in both seat positions. tooltour.py compares four script players and shows recorded practice data. recordedllmpractice.json summarizes the earlier lab runs. game_mechanics/ contains the game and strategy tools.

Glossary: Forced move: a decision point with only one legal choice. Seed: a number that starts a repeatable sequence of dice rolls. Interval: a range showing reasonable uncertainty around a win-rate estimate.