Commit graph

27 commits

Author SHA1 Message Date
764811b858 Docs: book-tables status, history §12, size-audit list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:27:39 -06:00
a97709128c Docs: scales, columns, thread dice and rerolls (LOGIC §3e, §3f, §5.4; ARCHITECTURE §3c)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:18:49 -06:00
650e24e9b7 Docs: DESIGN.md as a current-state page; 2026-11-10 history and module map
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:36:02 -06:00
99f4d21911 DESIGN.md: merged to main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:15:27 -06:00
c97a87d9c9 DESIGN.md: audits done; remaining size candidates; TestBase
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:57:08 -06:00
4a4dc62c3d DESIGN.md: all twelve plan steps done on tarot; decisions waiting on the user
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:25:06 -06:00
61395fa573 DESIGN.md: plan status after steps 7-9; suggested audits
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:15:28 -06:00
1199fafcf9 DESIGN.md: plan status after steps 1-6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:43:31 -06:00
0c9ab1aa71 Slim DESIGN.md to a status page; add parallel test runner
DESIGN.md (read every session) keeps status, names and the agreed plan;
architecture and history move to ARCHITECTURE.md and HISTORY.md, read on
demand. tools/run_tests.sh runs the suites in parallel and fails on SCRIPT
ERROR as well as on a missing PASS line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:03:10 -06:00
97305889b9 Let ranged results pipe into several cards (fan-out)
Dropping a pipe from a range on a ranged table replaced the range's
existing pipe. Ranges now add pipes like weighted results do, so one
result can feed several tables in one roll. DESIGN.md records the
change and the decision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 12:22:56 -06:00
85ec548425 DESIGN.md: record the UI pass merge commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:36:43 -06:00
8f16d337cf UI pass: striped rows, View/Help menus, zoom control, card ⋯ menu, fuller sample
- Striped result rows (parchment tint, on by default, `striped_rows` setting).
- Top bar: View ▾ (Plain words / Rule text, Collapse/Expand all, Striped rows,
  Minimap) and a "− 90% ▾ +" zoom control replace the Plain|Text switch,
  Collapse all, −/Fit/+ and Map. Arrange ▾ folds into Board ▾; Search is an icon.
- Help ▾ and F1 open a Help window; the 17 topics live in help/topics.txt.
- Build cards get a ⋯ menu (settings, template, collapse, delete) instead of
  the gear and footer Delete, sharing Style.overflow_button with group cards.
  Row × buttons show only on hover, focus or selection.
- Sample: Luck value card, Make Camp (pick card) and Search the Ruins
  (1d6 + Luck, with results only a modifier reaches).
- New test suite test_top_bar; Canvas/GraphML round-trip tests compare plain
  tables only, since logic keys are JSON-only.
- DESIGN.md: open items, including the Card Mode UI redesign.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:36:38 -06:00
540f995e2b DESIGN.md: open items after the roll-modifier merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:01:21 -06:00
33913889da Roll modifiers and resizable tray/inspector
- Ranged roll tables take a modifier (dice_mod, e.g. @luck). Ranges may run
  past the dice (-3 to 24 on a d20); totals past the ends use the end result.
- Range and chance code moved from RollTable into RollRange; chances follow
  the modifier's current value; plain wording and Why lines name it.
- ModifierEditor builds modifiers in plain words for roll and check cards;
  the inspector's roll section is now InspectorRoll.
- The Earlier tab scrolls; the tray and inspector resize with drag handles
  (PanelSplitter), sizes kept in local settings.
- Demo Room check uses 2d6 + Luck with a luck-only vault; new test_modifier
  suite; docs updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:01:10 -06:00
e5d3873cb2 DESIGN.md: open items, terminology decisions, Coderstanding how-to
Open items for the next session (repo privacy waiting on the user, a
playtest of the renamed build, a stale worktree), the glossary as a
decision, built-in templates, the next files to split, uninvestigated
scanner warnings, and the parallel-split agent brief.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 09:18:15 -06:00
5e34592fec Terminology pass: one set of kind and choice names, 2d6, result/change wording
- Describe.kind_label / choice_label / choice_labels replace six drifting
  label tables. Search no longer calls Check and Router cards "Table", and
  a Check card's dialog is titled "Check settings".
- Choice types read "Which option / How many / Open ended" everywhere
  (menu, settings, inspector, card, preview, details).
- Plain dice read "2d6" / "d6" instead of the 2D-game "2D" / "1D".
- The built-in "2D skill check" template becomes "Skill check (2d6 vs
  target)" (builtin:skill-check), a real Check card with Success and Failure.
- User text says "result" and "change" instead of "entry", "row" and "effect"
  (Test board, settings dialog, lint, variables panel, pipe options).
- Pipes are deleted (link, toast, undo label), like cards and results; the
  reset statement reads "Reset" in the builder and "Reset all X" for
  prefixes. "Clear" stays for a value that really was erased.
- The template-saved toast points at "+ Card ▾".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 09:14:30 -06:00
6208e42f75 Docs: architecture map for the split files, shared builders, history
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 08:21:46 -06:00
f3912fb026 Rewrite DESIGN.md as the project's status and handover document
Covers what TableTower is and its product principles, the feature set
on main, the architecture and key implementation facts, storage, how
to run tests, the simulator and background test windows, decisions on
record, known gaps, the private Traveller test board, ranked
improvement ideas and a short history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:43:30 -06:00
2703faf212 Inspector polish: pinned New value, title follows typing, CLI flags, README
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:29:59 -06:00
6f583ea4f5 Plain Build engine: Describe, Builder, checks, inputs, collections, why trace
Implements docs/PLAIN.md sections 1-5 (the engine half of the usability pass):

- core/describe.gd (Describe): rules in plain words, labelled from variable
  cards, collections and card inputs, falling back to the original text.
- core/builder.gd (Builder): effect and condition models that round-trip
  with the rule text, a rule tokenizer, and known_values(board).
- Collections: variable cards with var_type "collection" label their
  members and don't declare their stem.
- Check cards (kind "check"): dice + modifier vs target, Success/Failure,
  chain values nat/total/effect, node "check" info, lint and static checks.
- Card inputs and pipe "with" values, scoped over the pipe's subtree on the
  explicit work stack (OP_RESTORE frames), with defaults and snapshot
  evaluation.
- nat on every roll-table roll; dice faces recorded through ctx.faces.
- Why trace: facts on nodes and steps (input, roll, check, case, show_if,
  options_where, effect, when, otherwise).
- StateStore rules_view setting; JSON for the new keys; LOGIC.md and
  PLAIN.md updated (deviations in PLAIN.md 5a).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:01:24 -06:00
8ca50acd4b Add the Plain Build spec (usability pass)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 20:31:58 -06:00
86d1b214c3 Dynamic pick options, show_if and indirect @[expr] names
Pick choice cards can take their options from variables (options_from:
@prefix_* or a @list, filtered by options_where with option, option_label
and option_value bound). A Chosen entry runs for whichever dynamic option
is picked; fixed entries stay as extras, listed first. Random weighs each
dynamic option as the Chosen entry and fixed ones by weight. Any pick
option can have show_if, which hides it from the pop-up and from Random;
with nothing offered the node stops with "No options available".

@[expr] reads or writes the variable named by expr in expressions,
effects (including reset) and text ({@[expr]}); bad computed names are
effect errors. JSON round trip, lint_options in lint_pipes, choice
pop-up value badges and previews, card and settings UI, docs, demo board
(Spend a find) and tests/test_options.gd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 18:55:38 -06:00
dbbb9750eb Conditional pipes and router cards
Pipes can carry "when" (Only if) and "otherwise". When an entry is
chosen, its effects run, its text expands, then every pipe condition and
count is evaluated once as a snapshot before any pipe runs; when pipes
run if true, otherwise pipes if no when pipe was true, plain pipes
always. Condition errors count as false and show as error lines.

New router card (kind "router"): its entries are cases with an
entry-level "when"; the first true case is chosen (empty = Otherwise),
and "No case matched" stops the node. One action. JSON round trip for
entry/pipe when and pipe otherwise, including JsonIO.canonical and
edge labels. Roller.lint_pipes() and Roller.lint_router() for board
checks. A pick choice's save_as is now stored before the snapshot.

UI: Only if / Otherwise in the pipe popover with live validation, pipe
labels ("if @str >= 8", "otherwise") and a source-end diamond on
conditional pipes, router card with fork icon, per-case condition rows,
case editing / reordering in Build, router settings, "+ Table" entry,
router cases in table previews. Logic demo now routes through a router.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 17:53:00 -06:00
9cd1f1ea95 Groups and templates: docs, export filter and screenshot flags
Ship templates/*.json in exports, document groups and templates in the
README and design doc, and add --group-menu, --drag-demo, --insert-form,
--save-group-template and --clear-result for screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 17:08:22 -06:00
2ddf8c7c42 Add if(condition, then, else) and refuse the broken inline ternary
Godot's Expression parses "a if c else b" but returns the wrong branch,
so boards silently computed nonsense. Expressions now offer a
spreadsheet-style if() and reject the inline form with a hint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 14:20:05 -06:00
49b9a0c10e Add logic cards spec: choice, loop, variable and sheet cards
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:11:24 -06:00
cf1d8a6f1e Add design document
Covers roll tables, chained triggers and inline references, Card mode,
chain and persistent variables, hover details, BBCode formatting,
graph layout, import/export formats, and milestones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:13:57 -06:00