The starting point
Synthetic input# Pebble Pair: complete original input This is an original fictional adult tabletop game for a teaching exercise. Ari, Bea and Cleo are fixed synthetic aliases. There is no gambling or prize. These rules are the supplied game specification, not a claim about another game. ## Rules supplied by the game owner - Three players: Ari, Bea and Cleo. Three rounds per player; nine turns altogether. - Each turn records two ordinary six-sided-die faces, each a whole-number digit 1–6. - Score = first face + second face + 5 only when both faces match. Otherwise bonus = 0. - Highest total wins. All players tied at the highest total are joint winners; do not invent a tie-break. - The game is incomplete until all nine turns have valid entries. Do not declare a final winner early. An unrecorded turn stays missing rather than becoming a zero-score turn. - Turns may be entered in any order. One record per player/round. Add never overwrites an existing turn. ## Complete fictional turn input | Player | Round 1 faces | Round 2 faces | Round 3 faces | |---|---|---|---| | Ari | 2, 2 | 3, 4 | 6, 6 | | Bea | 6, 1 | 5, 5 | 4, 3 | | Cleo | 4, 4 | 1, 2 | 5, 6 | For the correction exercise only, change Bea’s round 3 to faces 5, 6 using its explicit Edit button. Then Undo. The worked score sheet and CSV are separate answer references. ## Local interaction contract 1. Open the HTML locally. It begins empty and warns that scores are unsaved. This file needs no server, install, account, internet connection or service form. 2. Choose Player and round; type both faces; activate Add turn. Alternatively use Add beside a blank round. Each die accepts exactly one ASCII digit 1–6 after trimming surrounding spaces. Blank, nonfinite, negative, zero, 7, decimals including 1.0, exponents, signs and other text are rejected without rounding or clamping. 3. To correct a recorded turn, activate its Edit button. The turn selection is locked. Save correction commits it; Cancel edit abandons unsaved changes. Saving the same faces is not an Undo change. 4. Undo restores the previous committed ledger, including a reset. It discards any unsaved input. Empty Undo is disabled. There is no Redo. 5. Reset game asks first. Keep this game preserves the ledger, history and unsaved input. Yes, clear scores empties all nine slots as one undoable change. Empty reset is disabled. 6. Reload or a page-show event starts an empty game and clears history. This includes browser back/forward page restoration; do not navigate away expecting recovery. Browser autofill and history features exist separately from this code. The original faces are the only stored application data. Subtotals, totals, completion and winners are recomputed from them each time. Turn scores range from 3–17; a completed player total ranges from 9–51. These bounds follow this supplied rule, not generic dice-game advice. ## Reuse limits The controls deliberately keep the aliases, three-round shape and scoring rule fixed. They edit turn entries, not the rules engine. The JSON source is editable text for a new version; it is not imported by the HTML. Before adapting, write your own exact authorized aliases, round schema, input bounds, scoring direction, tie/completion rules and test cases. Keep real personal data out of this sample. Use a new copy; do not overwrite this source. The actual file has native labeled controls, text-only dynamic output, visible focus CSS and a readable JavaScript-off explanation. Local VM checks do not establish browser keyboard, layout, offline-open or assistive-technology success. Check the actual local download before relying on an adaptation. No provider plan/access or time saving is claimed.
Copies text only. For image or file tasks, use the source files named in the steps too.
Download source .txt