I READ CODE: ORIO'S NIGHT SHIFT — COMPANION FILES
Lareine Han · First edition, 2026

These files accompany the 142-page KDP edition. The book and browser demo
can be used without installing anything. These Python files need Python 3.10+.

QUICK START
1. Unzip the whole folder.
2. Open Terminal (macOS/Linux) or PowerShell (Windows) in this folder.
3. macOS/Linux: python3 worked_examples/ch01.py
   Windows:    py worked_examples/ch01.py
   Output: 5 5
4. Try ch02.py through ch12.py. Each resets its own practice save.
5. Run python3 replay.py (Windows: py replay.py) for the full text game.
   For a desktop game window: python3 play.py (Windows: py play.py).
   The desktop window needs tkinter; the text game and examples do not.

Commands above belong in Terminal/PowerShell, not at a Python >>> prompt.
Type exit() if you are at >>>. Ctrl+C (or your editor's Stop button) stops a
stuck program. Restart Python after the intentional range-name bug in 3.2F.

EDIT YOUR WORKER
Open my_partner.py in a text editor. Set the five card values from 10.1.
Keep quotes around text. Run the game again after saving.

EXPERIMENT
python3 skill_lab.py compares the same four cards with the baseline plan
and a plan that calls the vacuum skill when nearby mess exceeds one piece.
It prints turns, final state and remaining mess. Speed/jump 2/2 improves
from 77 to 72 turns; 2/3 improves from 75 to 72. Both 1/2 and 1/3 stay at 72.
A stronger ability does not help unless the controller actually uses it.

FILE MAP
 game.py: complete rules printed at the back of the book
 my_partner.py: your editable card
 play.py: supplied desktop drawing and controls
 replay.py: text run of the finished game
 autoplay.py: supplied baseline controller
 skill_lab.py: optional controller comparison
 worked_examples/: 12 complete examples matching the book
 support.py: validates the worker card
 explore.py: additional route checks

This download is versioned for the 142-page first edition. The full game has
67 tiles and 80 turns. The browser practice roof has 13 tiles and 24 turns.
