Commit graph

183 commits

Author SHA1 Message Date
dba3f6514e Docs: playtest findings (2026-11-14), size audit batch 1 map, Morgan bug fixed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:21:35 -06:00
63929a9fc2 Size audit: split roll_table, roller and tower_board
New helpers: BoardGroups (group nesting and membership), BoardFileIO
(migrate, atomic writes), RollNodes (result-node helpers), RollLive (live
values and starting values) and RollTableFactory (new cards). RollPipes now
holds the pipe and pause frames, RollChoice reads options_from, and
RollTableIO cleans inputs. The original files keep one-line delegators.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:20:10 -06:00
4f8b3c7934 Size audit: split expr, builder and board_tester
Expr's rewrite step moves to ExprRewriter; Builder's tokenizer moves to
RuleTokens and its value list to BuilderValues; BoardTester's static
checks move to BoardChecks and its report text to BoardReportText. The
original classes keep one-line delegators, so no caller changes.
Expr's dice regex and word test now reuse RuleTokens (one copy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:20:00 -06:00
6027173ca3 Size audit: split main_cli, pipe_layer and main_rolling
main_cli: group/template/inspector flags -> MainCliBuild, --perf -> MainCliPerf.
pipe_layer: batched unlit threads -> PipeBatch, curve/dash maths -> PipeGeometry.
main_rolling: session seeding -> MainRollingSeed, copy-as-text -> MainRollingCopy.
Public methods keep one-line delegators; no behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:19:33 -06:00
c03657c2a1 Size audit: split inspector_card and group_card
Move choice, router and ledger sections of the inspector card into
InspectorChoice, InspectorRouter and InspectorCollection, and the
collapsed group card build into GroupCardCompact. InspectorCard keeps
one-line delegators for its public functions, so no caller changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:18:33 -06:00
5592c3d134 DESIGN.md: Morgan colour bug details, status and next steps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:48:41 -06:00
3d0ba9c6b8 Nine more built-in themes: Web 1.0 and the eight suggested (Case File, Eldritch Archive, Comic Panel, Brass & Gears, Chrome Street, Star Chart, Cartographer, Storybook)
Generated stand-in art and sounds, ten more OFL fonts, PNG tiles in the theme generator; untrack __pycache__.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:40:10 -06:00
7c6c5a4b3b DESIGN.md: Morgan colour bug report, editor preview and file pickers for later, Web 1.0 mockup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:22:02 -06:00
61a548902f Theme tiers 1-2: theme folders, mascot recolour, background scene and tile, frame sets, picture threads, sounds; nine new built-in themes
- ThemeAssets loads a theme's files; FrameSet + GradientMap (3-stop) generalise the card frame;
  ThreadStrip draws threads from a picture; BoardBackdrop draws scene and tile; MascotArt
  recolours Morgan by role (logo SVG now uses the Keep File importer); SoundBoard plays
  roll / card turn / thread / click / ambient with View > Sound levels.
- Vaporwave, Synthwave, Cozy Autumn, Rustic, Woodsy, Sky Blue, Frutiger Aero, Gothic, Terminal:
  generated art (tools/theme_art), sounds (tools/theme_sounds), settings (tools/theme_defs).
- Ten OFL fonts; --theme=<id> flag; docs/THEMES.md format spec; test_theme_assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:05:40 -06:00
d491224949 Mascot named Morgan Fortuna; inner_line layer fixes see-through beak lines; theme tier plan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 14:47:45 -06:00
c009021ac3 Descriptive names rule; first fix in TableCardHeader._make_go_button
DESIGN.md §5: no one- or two-letter names (loop counters and math
coordinates excepted); old names are fixed when the code is touched.
Rename b -> go_button and rn/rh/rp -> normal_style/hover_style/
pressed_style. Also note where Coderstanding is now installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:18:54 -06:00
baaffbdf31 DESIGN.md: roll hitch noted; Stage II features merged
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 10:52:47 -06:00
66c9df1f2d DESIGN.md: Perilous Void Stage II built; the new book-table features
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 09:17:28 -06:00
200edfd67e Book tables: columns as one phrase, roll twice and combine, results saved into lists, one-option picks answer themselves
- column_join: a card with columns reads as one phrase ("Ash Canyons"), which threads save
- TableEntry.repeat: a result that rolls its column again N times and combines them
- Saving a result into a declared list value adds an item (RollContext.save_result)
- A pick with only one available option picks it without asking
- Lint, why facts, inspector controls, tests, LOGIC.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 09:06:55 -06:00
050a64014d Spread switcher tooltip says Spreads; DESIGN.md: 2026-11-11 status
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:41:30 -06:00
3cba805ec4 UI: the Collection card kind is now called Ledger
Code names and JSON keys stay "collection".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:39:07 -06:00
16ad73adfb Group marks: member cards' top-right corner in the group's colour
Groups get an optional colour (Colour menu on the group); uncoloured
groups use the theme token GROUP. The group frame's border matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:36:13 -06:00
37f32076be Docs: fonts, deck reveal, entry handles, open items
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:23:42 -06:00
194f157140 Build mode: drag a result's handle to reorder a card's results
Ranged cards keep their ranges in place so the results move through
them. The router case arrows share the same move_entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:23:25 -06:00
2d247e34b4 Thread nodes under a card stacked above theirs are hidden
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:20:30 -06:00
4f0d2e2c4e Deck mode: a drawn result fades only once the animation reveals it
DeckReveal holds an animated roll's draws until each result lights; the
cards-left count waits too. Fast rolls and any newer roll drop the holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:19:34 -06:00
f731c6ffbf Theme fonts: 13 bundled families and text/title pickers in the theme editor
Standard (Inter, Source Sans 3, Lora, Rokkitt), easy to read (Atkinson
Hyperlegible, Lexend, Andika, OpenDyslexic) and themed title faces (Cinzel,
IM Fell English, Uncial Antiqua, Orbitron, Special Elite). All OFL except
Special Elite (Apache 2.0); licence files sit beside the fonts. FontCatalog
builds faces, synthesising missing bold/italic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:16:42 -06:00
fe883cbeda DESIGN.md: book tables merged; next steps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:36:12 -06:00
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
0e45ea7abc Value pickers list the values columns save
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:26:55 -06:00
03bc168756 UI for scales: make, show and edit ordered-step values
- Making one: Scale (ordered steps) in + Card, the inspector's Type switch
  and the settings dialog; steps one per line and a starting step dropdown
  (InspectorScale); new scales get Low, Medium, High.
- Showing one: the variable card shows the current step and the steps in a
  row with the current one marked; the Variables tab stores a typed step
  number or name as the step.
- Plain words: Builder ops step_up, step_down, toward, at_least, at_most
  (BuilderScales; step_up/down need the board), DescribeScales phrases,
  scale effect rows (EffectsScaleRow) and step dropdowns in conditions.
- Help: a Scales topic after Values and changes.
- Tests: test_ui_scales, plus builder and describe cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:25:55 -06:00
446ad8ab17 Saved roll steps keep each column's result, so column highlights survive history and fast rolls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:25:48 -06:00
1377368428 UI for cards with columns: header and cells, inspector Columns section, help
- TableCardColumns: the column-name header, each row's cells after its text
  (Play: wrapping text; Build: a field per cell, edited inline), cards widen
  per column, and in "each" mode the cell each column landed on is lit
  (Main.lit_columns, from the rolled node's columns).
- InspectorColumns: Add columns, add/rename/move/remove (cells kept in step),
  one roll vs each column, Save as (value picker) and Only if (condition
  builder); the result inspector gets a field per extra column.
- Help: a Columns topic after Ranged tables and dice.
- tests/test_ui_columns.gd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:25:03 -06:00
8bbc7002a0 Thread dice must roll dice: Dice.roll_problem shared by the field and the board check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:19:36 -06:00
df03168382 Thread inspector: roll with other dice, roll again on some results
- InspectorThreadRolls (new helper): "Roll it with [ ] instead" for a card
  with numbered ranges (placeholder: the card's own dice), and a collapsible
  "Roll again if it comes up: …" tick list of the card's results (scrolls
  past 7 rows; open state kept across rebuilds).
- Inspector.set_pipe_dice / set_pipe_reroll delegators; edits go through
  Inspector.wrote like the other thread options, so undo covers them.
- Help: two short subsections in the Threads topic.
- tests/test_ui_threads.gd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:18:49 -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
e3cc925e42 Engine: scale values, cards with columns, thread dice override and rerolls
- Scales: var_type scale with steps; stored as step names, read as step
  numbers in rules (a quoted step name beside a scale reads as its number);
  += / -= move steps and stop at the ends; toward().
- Columns: RollTable.columns / column_rolls (row or each), TableEntry.cells;
  RollColumns fills the other columns, saves each, honours a column's when.
- Threads: dice (roll with other dice instead) and reroll (result ids).
- RollTable save/load split into RollTableIO; Expr's base into ExprBase.
- RollLintBook checks; JSON canon keeps the new keys; tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:12:47 -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
8abe90b407 Splash screen: the fortune teller on the Tarot purple
The boot splash shows the mascot art on its own background colour
(#390853), so it blends edge to edge; the app icon is the mascot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:14:43 -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
82d67eb64f Size audit: split ChoiceDialog and TableCard into helpers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:56:20 -06:00
29d6d4eae9 Tests: extract shared TestBase (guard, main loading, check helpers, summary)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:53:22 -06:00
03a192f47d Split inspector.gd: result, thread and sync helpers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:51:23 -06:00
97258b0d2b Size audit: split MainLayout out of Main, EditLabels out of EditHistory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:45:56 -06:00
b1525687ad Size audit: split Describe and JsonIO into helper files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:41:08 -06:00
9f06af9676 Fix: resize corner caught clicks far outside cards; left-drag selects in Play too
CardGrip._has_point only checked 'right of and below' the corner, and
Godot asks controls about points outside their box, so everything to the
bottom-right of every card acted as its resize handle. It's now bounded to
the corner square inside the card.

A left-drag on empty space now draws a selection box in Play as well as
Build, and selected cards move together in both; panning is middle-drag or
Space+drag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:38:15 -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
b1616373be Help: topics for every new feature, a cheat sheet, and Try a demo spreads
Twelve new Help topics (menus, selecting and resizing, nested groups,
themes, List view, the Book, rolling more than once, pausing, costs,
one table adjusting another, sheets and saving, pictures, phones), and a
Keyboard shortcuts topic split into keys, mouse and touch. Topics with
[demo]key[/demo] get a 'Try a demo spread' link: DemoSpreads builds a
small example, DemoMode shows it unsaved and unlisted with Keep a copy
and Back to my spread. --demo=KEY opens one from the command line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:24:57 -06:00
57041d41b3 Pictures on results and Book pages; export/import keeps everything new
A result or page can have a picture (TableEntry.image, BookPage.image),
chosen from a file, shrunk to 512 px and kept in the spread file as WebP
under "images" (BoardImages; only used pictures are saved). It shows as
a thumbnail on the card row and in the details pop-up, and comes with a
page. Imported BBCode still can't point at files.

Fix: the Table Tarot JSON export and import (JsonIO.canonical) dropped
every key it didn't know, losing the Book, pictures, card colours and
sizes, limits, nesting, costs and thread options. They now pass through;
a round-trip test covers them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:21:05 -06:00
8fd2b2b8c9 Sheets: a line-per-value helper and Save as a file (Text, Markdown, web page)
The Sheet card's inspector adds a 'Label: {@value}' line for any value
picked. The tray's Copy ▾ gets Save as a file: the roll's sheet (or one
line per result) as Text, Markdown, or an HTML page a browser can print
to PDF, with bold, italics and colours kept where the format allows
(SheetExport). The test runner prints a compile error shared by many
suites once, with the suite names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:17:27 -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
ef1dc846d1 Adjust later rolls: Never below / Never above on ranged cards
RollTable.roll_floor and roll_ceiling (numbers or values) limit a ranged
roll's total after its modifier (RollRange.limit). An earlier result's
change (e.g. @atmo_min = 7) can thereby raise or cap a later card's roll.
The inspector's Limits rows take a number or a value; the Why trace says
'raised to 7 (never below Atmo min)'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:15:09 -06:00
25018ebdf3 Costs on choice options
A pick option can cost an amount of a value (TableEntry.cost_value and
cost_amount, JSON "cost"; the inspector's Costs row). The pop-up shows
the cost, and greys the option out with the reason when there isn't
enough; Random never picks it. Picking it takes the amount away as an
ordinary change (RollCosts). A costly Reroll option that threads back to a
card gives spend-a-point rerolls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:12:06 -06:00
fe133d3a94 Pause: a thread can wait for the player
A thread with 'Wait for me first' (TableEntry.pipe_pause, JSON "pause")
stops the roll before it runs (Roller.OP_PAUSE, a "pause" request). The
tray shows Continue ▸ and Stop here; starting another roll sets the paused
one aside with its chip kept, and Continue makes it the current roll again
(RollPauses; each roll's token lives in a holder so it can be revived).
Stop here ends the roll and the chip says where it stopped. Headless rolls
continue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:10:11 -06:00