Commit Graph

686 Commits

Author SHA1 Message Date
Brian Fertig 32761df1ff
Position treasure value badge over art in Dominion cards
- Add artTopRight() helper to compute a top-right inset badge position
- Move coin-value badges for treasure cards from the rules panel onto the
  art area (top-right corner) in large and medium card layouts
- Keep victory/curse value badges in their original panel positions
2026-11-27 10:46:01 -07:00
Brian Fertig 320891bf2a
Add speech cues and audio config for slots machines
- Wire up intro, big-win, tumble, scatter, coin, wild, and per-symbol
  line-win speech clips across Pharaoh's Fortune, Dragon's Hoard, Gold Rush,
  Sugar Spin, and Abyssal Treasures.
- Generalize `playSpinCues` to resolve tiered cue maps (pyramids, coins) and
  new `symbolWins` / `wild` cues; support `{ file, chance }` entries so
  common one-dynamite callouts only fire ~40% of the time.
- Track tumble number during cascade steps and fire per-tumble Sugar Spin
  clips as each tumble occurs.
- Expose `wilds` count on line-win results in `SlotsLogic.evaluateLines` so
  wild participation can be detected for cue selection.
- Rename `dragons-intro.mp3` to `dragon-intro.mp3` to match naming scheme.
2026-11-27 00:51:02 -07:00
Brian Fertig abe50a7486
Add per-machine music tracks and big-win/cascade audio cues
- Wire `music`, `bigWin`, and tiered `cascades` clips into machine configs for Pharaoh's Fortune, Abyssal Treasures, Dragon's Hoard, Sugar Spin, and Gold Rush Gulch
- Play a dedicated clip the moment a cascade ladder rung is reached (e.g. ×4 → abyssal-4x.mp3)
- Fire `bigWin` audio once a spin settles at ≥10× bet alongside the existing bigMoment FX
- Mix per-machine theme tracks louder (0.4) than the shared pool default (0.15) so each machine's soundtrack stands out
2026-11-26 21:25:31 -07:00
Brian Fertig 3fba22fc9f
Rework Monopoly into the Boardwalk Hotel with full rules and UI
- Rewrite the logic engine for official rules: debt queue, raise-funds phase,
  bankruptcy to a player (buildings at half, mortgages carried with 10% interest)
  or to the bank (auctions), even building/selling, housing shortage, Get Out of
  Jail Free cards leaving the deck while held, and stats/history tracking.
- Add house rules and modes: Short Game (dealt deeds, 3-house hotels, end at first
  bankruptcy), starting cash, Free Parking jackpot, double GO, auctions toggle, and
  round limit, all configurable from a new setup card and Front Desk menu.
- Replace the flat board with a baked Art Deco parlour: procedural board art,
  title-deed cards, banker's tray with flying bills, house/hotel rack, felt dice
  tray with 3D dice, player plaques with deed rails, ledger, and Web Audio SFX.
- Split the scene into focused modules (Art, Bank, Deed, Dialogs, EndScreen, Hud,
  Layout, Sound, Trade, Tray) and add a stats-rich end screen plus mid-game
  bankruptcy watch mode.
- Improve AI decisions for buying, bidding, jail, building/unmortgaging, debt
  resolution, and trades; default to three opponents and enable the tutorial.
- Add tools/verifyMonopoly.js for headless rules, AI soak, save round-trip, and
  layout checks; replace sprites.md with a written tutorial.
2026-11-26 20:50:56 -07:00
Brian Fertig 14c17d2eb0
Track mistakes per cell so corrections and undo/redo adjust the count
- A wrong entry now counts once; erasing, correcting, or undoing it decrements
  the counter instead of accumulating duplicates on every edit.
- Persist mistakeCells in the save and rebuild from existing grid data for
  saves created before this field existed.
2026-11-26 13:27:54 -07:00
Brian Fertig 0223a191fc
Add video background option to Mahjong Match
- Register three looping mp4 backdrops in the asset manifest alongside the existing images.
- Add an Image | Video segmented toggle on the layout-select screen; choice persists in localStorage and defaults to Video.
- Render a muted, looping, letterboxed video behind the tiles with a scrim, falling back to image backdrops if no video is cached.
- Defer re-fitting after Phaser swaps in the real video frame so the backdrop isn't rendered ~3× zoomed against the 256×256 placeholder.
- Add tools/smokeMahjongMatchBgVideo.mjs Playwright smoke test covering toggle default/persistence, video playback/mute/loop/sizing, and image fallback.
2026-11-26 13:21:01 -07:00
Brian Fertig 14f098e3f1
Rename Scrabble to Wordsmith and rebuild the game as a Reading Room table
- New baked-canvas art (ScrabbleArt), HUD (score sheet, tile tracker, seats, preview tag), dialogs, end screen with coach review, Web Audio SFX, and layout constants replace the old flat Phaser scene
- Split rules into a JSON-safe state machine in ScrabbleLogic (seeded RNG for resumable saves) plus challenge-rule modes (friendly / double / five-point)
- Rewrite the move engine: anchor-based generator with incremental scoring, skill-tiered vocabularies, leave-value equity, plausible phonies, and challenge judgement; add hint, judge, two-letter, and AI-challenge routes
- Add a verifier (tools/verifyWordsmith.js) that soaks full games, checks the generator against a brute-force reference, runs a skill ladder, and validates layout overlap
2026-11-26 12:33:07 -07:00
Brian Fertig 0a421a3392
Redesign word search as "The Rail Edition" puzzle book
- Replace the plain grid UI with a train-carriage scene: baked carriage art, scrolling window view (clouds/far/mid/near/poles), tunnel dips, rail-bed audio, and a spiral-bound book with cover, contents page, and page-turn animation
- Add 15 themed chapters (space through castles) with per-chapter inks, fun-fact words, and secret-message phrases; the generator now packs words so leftover cells spell the message instead of random filler letters
- Introduce four ticket classes (Local/Express/Intercity/Sleeper), a seeded "Today's Route" daily with streak tracking, autosave/resume, hints, scoring, and stats per class and chapter
- Add Web Audio synths for pencil ticks, highlighter swipes, train whistle, letter pings, and the carriage rumble/clack bed (no audio files)
- Extend the server route to accept an optional seed and return ink, message, facts, and seed; move theme data to a shared module
- Add tools/verifyWordSearch.js covering chapter data, generator correctness/perf, selection machine, save/resume validation, daily streaks, layout, art bakes, and a stubbed-Phaser play-through
- Add new opponent convo speech files (juliet-croc/nadia/smasher, michael-bernie) and wire convo entries into opponents.json
2026-11-26 11:21:04 -07:00
Brian Fertig 5f2930c1e1
Overhaul Spelling Bee with curated answers, Daily Hive, and full art pass
- Introduce a tiered answer list (core/familiar) built from ENABLE + web frequency data; non-answer ENABLE words become "Rare Finds" bonus points instead of counting toward the goal
- Rewrite puzzle engine to pre-index words by letter mask, build per-difficulty catalogues with pangram/suffix-share filters, and support seeded generation for a deterministic Daily Hive
- Add Daily Hive mode with streak tracking, best-score history, and date-based seeding
- Replace the dark felt UI with a baked "Apiary at Golden Hour" art set (honeycomb cells, honey jar rank meter, beekeeper's ledger, animated bees, vignette, synthesized buzz)
- Expand SpellingBeeLogic with hint grid, nudge picking, save/parse helpers, and difficulty-aware rank tiers
- Add tools/buildBeeWords.js to regenerate the answer list from frequency data with allow/deny overrides, and tools/verifySpellingBee.js as a headless test harness covering engine, logic, layout, art bake, and scene smoke run
2026-11-26 10:35:26 -07:00
Brian Fertig da558f2df9
Rework Sudoku as "Sunday Paper Café" with canvas art and full play flow
- Add SudokuArt.js: bake all café-themed textures (table, paper, grid, notepad, watch, eraser, clippings) to canvases at runtime; no image assets
- Rewrite SudokuGame.js around the new layout: start page with edition cards and daily puzzle, play screen with cell/digit-first input, keyboard controls, undo/redo, hints, pause flap, win ceremony + solved clipping, autosave/resume, stats and daily streak tracking
- Expand SudokuLogic.js with pure helpers (geometry, conflicts, completed units, history, save validation, daily streak) shared by the scene and the verify tool
- Replace the old generator with a technique-tiered engine: bitmask backtracking solution counting, logic-solver grading (naked/hidden singles, locked candidates, pairs/triples, X-Wing/Swordfish/XY-Wing), seeded deterministic generation for the Daily edition
- Add seed query param to /words/sudoku/start route
- Add tools/verifySudoku.js: headless test suite covering generator correctness and uniqueness, solver soundness, board helpers, hints, undo/redo, save/resume, daily streaks, layout invariants, art bake against a strict fake 2D context, and stubbed-Phaser scene smoke runs
2026-11-26 09:44:16 -07:00
Brian Fertig 9c35504760
Rework Tectonic into a Field Geologist's Notebook experience
- Replace the flat graph-paper UI with a baked-canvas notebook: desk scene,
  watercolour cage plates with inked outlines, specimen tags, and a survey
  certificate win screen (TectonicArt.js).
- Add keyboard play (arrows/WASD cursor, 1-5, Backspace, Ctrl+Z/Y), undo/redo,
  pause overlay, toasts, a first-run field guide, and per-cage completion
  feedback with a seismograph strip.
- Support resuming an in-progress survey from localStorage plus a Daily Survey
  (seeded generation, streaks, best-time tracking).
- Extract shared rules into TectonicLogic.js (cage tracing/inset/colouring,
  history, save validation, daily helpers) and make the puzzle generator
  accept a seed for deterministic boards.
- Add tools/verifyTectonic.js covering the generator, logic, layout, art bake,
  and a stubbed-Phaser scene smoke run.
2026-11-26 08:45:58 -07:00
Brian Fertig d341746a8e
Rewrite Freecell and Solitaire Tour with a shared solitaire scene layer
- Add `src/ui/solitaire/` base scene (SolitaireScene), geometry, sound, and stats
  modules so both games share drag/click input, undo/redo, auto-play, hints,
  timer, win cascade, and per-game records.
- Rebuild Freecell ("the Night Study") on the new layer: canvas-baked room art,
  animated rain/lightning/mantel clock, banker's lamp glow, deal card, and a
  brass plaque HUD. Add numbered/daily deals (1..1,000,000) and a resumable
  best-first solver that powers hints plus an honest "still winnable?" verdict;
  safe auto-play sends provably-safe cards home automatically.
- Rebuild Solitaire Tour with five themed rooms (Golf, Klondike, Pyramid, Take
  Fourteen, Three Shuffles), per-leg controllers in `SolitaireTourLegs.js`,
  golf-style scorecard scoring, save/resume, and tournament vs casual rules.
- Refactor both logic engines to a uniform apply()/legalMoves()/snapshot() API
  with plain-object moves, making them Phaser-free and testable headlessly.
- Add `tools/verifyFreecell.js` and `tools/verifySolitaireTour.js` headless
  suites covering rules, random play, solver replay, snapshots/saves, layout
  bounds, and scene decisions.
- Add tutorials (`tutorial.md`) for both games and a Mahjong background video
  asset; fix multi-card drag skip in CardTableScene to check the dragged id set.
2026-11-25 23:59:34 -07:00
Brian Fertig 40efc183fc
Rework Chinese Checkers into "Moonlit Tea Pavilion" with 2–6 player support
- Rewrite the AI (skill 1–5 ladder with lookahead, anti-blocking awareness) and rules engine to support variable seat counts, partner teams, boxed-in detection, and stalemate/turn-cap endings
- Add fully procedural art (room, board, glass marbles, HUD furniture), marble animator, Web Audio sound effects, pause/end dialogs, and a per-seat HUD with progress pips, speech bubbles, and medals
- Enable 1–5 opponent skill selection in OpponentSelectScene and map the game to the "chinese" soundtrack
- Add headless verification suite (topology, rules, AI legality, self-play soak, skill ladder, layout bounds) at tools/verifyChineseCheckers.js
2026-11-25 22:57:14 -07:00
Brian Fertig 98a6cd56d9
Overhaul Mahjong into a full parlour experience with rich AI and helpers
- Rebuild the table scene: procedural room/table art, persistent tile sprites
  that slide and flip between wall, rack, river and melds, dice break ritual,
  call stamps, speech bubbles and score rolls
- Add MahjongAdvisor (shared by UI and AI): waits, unseen counts, discard
  advice, danger map, hand-pattern compass and opponent reads
- Strengthen the AI skill ladder: value awareness, one-suit commitment, wait
  pricing, defense/folding at skill 5, and explainable claims/discards for the
  coach
- Add house rules (rounds, min faan, faan cap, rob-kong, bonus tiles, stake),
  limit hands (Nine Gates, All Terminals, Four Kongs, Heavenly/Earthly, etc.)
  and robbing the kong in the engine
- New UI: settings/helpers dialogs, scoring slip, end-of-session screen with
  stats and score chart, tile tracker, danger shading, table log, tips
- Web Audio synths for clacks, wash, chime/gong plus rain/murmur ambience
- Expand verifyMahjong: limit-hand fixtures, rob-kong scenario, wall geometry,
  advisor brute-force checks, layout overlap checks, ledger-vs-engine self-play
  and an optional skill ladder benchmark
2026-11-25 22:05:25 -07:00
Brian Fertig e74449ffa1
Redesign Splendor as "The Counting House" with full art, AI planner, and HUD
- Replace the flat UI with a procedural counting-house scene: baked room, baize market, velvet jewel case, tooled-leather ledgers, gilt patron gallery, and Guild Register prestige track (SplendorArt, SplendorLayout, SplendorHud)
- Add three-tier buy highlighting (blaze/gold/near), cost-chip annotations showing what bonuses cover, rivals' reach pawns, hover previews with place names, and gem-flight animations (SplendorFx)
- Rewrite the AI from a 1-ply greedy into a full planner: evaluate prestige, engine demand, targets discounted by turns-to-afford, noble contention, denial, end-race awareness, and skill-gated follow-up lookahead; sensible blunders only for low skills (SplendorAI)
- Extend the rules engine: blind deck reserves hidden from rivals, per-seat stats and awards, explicit noble-choice phase when multiple qualify, effectiveCost/affordState/previewBuy helpers, and shared-place ranking (SplendorLogic)
- Add dialogs (pause/settings, confirm, hand-back tokens, noble choice), a Guild Ledger end screen with charts and honours, and synthesized Web Audio SFX (SplendorDialogs, SplendorEndScreen, SplendorSound)
- Add headless verifier covering rules, preview-vs-reality, AI soak/conservation, skill ladder, layout bounds, and art-sheet sizes (tools/verifySplendor.js)
- Fix TutorialModal to only resume menu music if it was actually playing when the modal opened
2026-11-25 19:18:47 -07:00
Brian Fertig d1906f6b94
Overhaul Dominion table with Steward's Hall art and scoring ceremony
- Add procedural "Steward's Hall" visuals (DominionArt.js): baked oak
  table, candlelight, treasury tiles, baize runner, steward tray, banners,
  parchment panels, and type-coloured card faces for both sizes.
- Extract a pure layout engine (DominionLayout.js) that flexes for 2–4
  players, any basic-pile set, and the kingdom; verify it headlessly with
  tools/verifyDominion.js across every variant.
- Add persistent HUD furniture (DominionHud.js): Steward's tray with coin
  flights, Province/Colony end clock with empty-pile seals, VP token dishes,
  heraldic seat banners, and the brass phase dial.
- Replace the plain game-over modal with "The Reckoning" ceremony
  (DominionEndScreen.js) that counts victory cards group by group and crowns
  the winner; add scoring helpers in DominionScoring.js.
- Fix AI stalling on restricted buys (e.g. Grand Market) by skipping cards
  buyAllowed rejects, and end the turn if a buy is rejected as a safety net.
- Add a kingdom-reveal intro, trash viewer, tuck display for Throne Room /
  King's Court targets, and an all-AI soak that keeps base-game results
  byte-for-byte identical to before the overhaul.
2026-11-25 18:09:17 -07:00
Brian Fertig c530bc5b30
Overhaul Mexican Train: full kitchen-table art, skill-based AI, and house rules 2026-11-25 17:06:41 -07:00
Brian Fertig df725cb013
Add audio assets for slots games (music and speech)
- Add background music tracks: abyssal-treasures, dragons-hoard, sugar-spins
- Add speech clips for win announcements, features, and intros across Abyssal, Dragon's Hoard, Gold Rush, and Sugar Spins
2026-11-25 15:33:13 -07:00
Brian Fertig ec09bb42f5
Rewrite Parchisi as "Monsoon Veranda" with full rules and AI
- Rework game logic to integer progress model (nest/track/home-path/home), add
  opening throw, doubles backs, third-doubles penalty, blockades on the home
  path, capture/home bonuses, share-safe house rule, and stats/history
- Replace AI with a skill 1-5 ladder: exact threat odds, lookahead at skill 5,
  noise/loose play at lower skills, plus hint/explain for the UI
- Split the monolithic scene into focused modules (Board, Layout, Art, Pawns,
  Tray, Hud, Dialogs, EndScreen, Sound) and a thin orchestrating ParchisiGame
- Add procedural "Monsoon Veranda" art (rosewood board, lacquered pawns, brass
  tray/cup, room/props), Web Audio synths, rain loop, dice-cup shake-to-roll,
  3D dice throws, danger rings, opponent chat, and a podium/stats/race-chart end screen
- Allow 2-4 players (minOpponents 1) with per-opponent skill selection, update
  tutorial copy, and add tools/verifyParchisi.js headless rule/AI/layout checks
2026-11-25 14:09:55 -07:00
Brian Fertig 43ca22b63a
Rework backgammon into a full seaside kafeneio experience
- Rewrite the AI with a skill 1–5 ladder: pip-equivalent evaluator with shot counting, primes and blot risk; exact one-sided bear-off table (54k positions) for race play; optional 2-ply lookahead at skill 5; cube double/take decisions with Crawford and dead-cube handling
- Add a procedural art set (olive-wood tavli case, bone/walnut checkers, dice cups, doubling cube, tea glass, komboloi) and a layout module driving every screen rect, including a mirrored home-board option
- Rebuild the scene around the new modules: persistent checker registry with stable ids and animated moves, 3D dice throws planned from real rolls, leather cup shake/throw, HUD plates/slate/ledger, pause menu, cube offer slip, end screen with stats and pip-race chart, Web Audio clacks/slams and looping sea waves
- Expand the rules engine: opening roll, maximum-dice/higher-die enforcement, bar entry and dancing, overshoot bear-off, gammons/backgammons, Jacoby, matches to N with Crawford, per-player stats and move log
- Enable opponent skill selection for backgammon in the opponent scene
- Rewrite the tutorial to match the new table, controls and cube/match features
- Add tools/verifyBackgammon.js covering rules, turn generation vs brute force, bear-off table sanity, AI soak and layout bounds
2026-11-25 12:44:57 -07:00
Brian Fertig 98b4dfdb8e
Rewrite Zahtzee as a game-night dice table with expert AI
- Replace the flat panel UI with baked art: plank room, felt tray, keeper ledge, leather cup, clipboard score pad, and opponent seats
- Add YatziSolver (exact expected-value turn solver) and rework YatziAI into a 5-level skill ladder plus a Coach readout with chase odds
- Generalize Dice3D.planTrayThrow from two dice to N dice with configurable spread/aim
- Split game code into YatziLayout, YatziArt, YatziTray, YatziPad, YatziDialogs, and YatziEndScreen; update YatziGame to drive them
- Extend YatziLogic with Joker modes, per-player stats, upper-par meter, rankings, and a commit log
- Add a tutorial (tutorial.md), enable it in the game registry, and add tools/verifyYatzi.js for headless rule/solver/AI/layout checks
2026-11-25 11:43:45 -07:00
Brian Fertig 01372c1c62
Rebuild Azul as a full tile workshop scene with procedural art, AI, and tests
- Split the monolithic scene into focused modules: layout, art baking, HUD, dialogs, end screen, sound, tile identity tracking, and a verification harness
- Replace the 1-ply greedy AI with an incremental valuation that scores placement points, bonus progress, floor liability, end-timing, denial, exposure, and optional rollouts across a 5-level skill ladder; add free-wall column picking
- Add the free (grey) wall variant end-to-end: per-row/per-column colour constraints, legal-column queries, dump-to-floor when no cell fits, player column choices during scoring, and AI support
- Track all 100 tiles as persistent sprites with stable ids so they slide between bag, plates, centre, lines, walls, floor, and lid instead of being recreated each render
- Bake the Lisbon workshop (azulejo wainscot, oak bench, glazed tiles, plates, tray, bag, lid, panels) into canvas textures with optional colour-blind glyphs; add Web Audio ceramic SFX
- Add quality-of-life UI: hover/keyboard move preview with points and floor cost, drag-to-place, undo until the next player moves, tile tracker, bonus badges, opponent board zoom popover, tooltips, order book, pause/settings, and a detailed end screen with per-round chart
- Extend rules logic with stats, round summaries, placement runs, bonus status, previewMove, tile census, and richer log entries; update sprite and tutorial docs
- Add tools/verifyAzul.js to check rules, preview accuracy, all-AI soak games, the skill ladder, tile-id stability, and screen layout
2026-11-25 01:47:25 -07:00
Brian Fertig 8ef312ef45
Overhaul Catan and Ticket to Ride with procedural art tables, shared 3D dice, skill-scaled AI, end screens, and headless verification tools
- Catan: bake the wooden table, sea frame, caddy, tray, opponent boards and end screen from code; add piece-supply limits, official bank-shortage rule, per-game stats, AI trade reasons, and a felt dice tray using shared 3D dice
- Ticket to Ride: render an antique parchment map with score track, desk pad HUD, dialogs, sound synth, and scoring ceremony; rewrite the AI as a 1–5 skill ladder with network planning and turn-weighted routing; add forced-pass/stall guard, route lock reasons, per-player stats, and face-up market replacement
- Extract the 3D dice cube math and renderer into src/ui/dice/Dice3D.js so Craps and Catan share one implementation
- Add tools/verifyCatan.js and tools/verifyTicketToRide.js for headless rules, soak, AI ladder, dice, and layout checks
- Enable skill selection for Ticket to Ride in the opponent select screen; make MusicPlayer controls positionable for the map corner
2026-11-25 01:09:43 -07:00
Brian Fertig 07c1d7ba04
Add confirmation prompt when discarding mid-lay-down in Phase 10
- Prevents accidentally ending a turn and wiping staged mat cards by
  prompting before the discard takes effect.
- New `confirmTurn` setting (default on) gates the prompt; toggleable in
  table settings alongside existing warn/hints options.
- Confirmation modal shows current phase, per-group progress, and offers
  "Lay it down" / "Keep building" / "Discard & end turn" actions.
- Settings modal height and row positions adjusted to fit the new option.
2026-11-24 22:22:00 -07:00
Brian Fertig c193d0a4ca
Overhaul Old Maid with card-table kit, AI tells/shuffles, and verification
- Rewrite the game scene on the shared CardTableScene: candlelit Victorian parlour art, oval table, fan hands, drag-to-reorder, dock/pause/rules/scorepad modals, animated deal and pair reveals
- Add shuffle mechanic (applyShuffle) so players can hide the Old Maid's position; AI tracks posKnown and forgets it on shuffles
- Introduce skill-based tells (hopeful/worried) and wantsShuffle bluffing for opponents; lower-skill AIs are honest, high-skill ones mostly bluff
- Allow 1 opponent (minOpponents 1) so Old Maid works as a 2-player game; expose skill selector in OpponentSelectScene
- Track discarded pairs in state and add countCards helper for conservation checks
- Add tools/verifyOldMaid.js covering rules, AI memory/tells, layout collision checks for 2/3/4 players, and an all-AI soak
- Tune Go Fish verification threshold after the no-repeat-target rule change
2026-11-24 21:56:59 -07:00
Brian Fertig 5e7d4bb172
Migrate Go Fish and Hearts to the shared card-table kit
- Rewrite both games on CardTableScene with new table layout (GoFishTable.js,
  HeartsTable.js) and baked room art (GoFishArt.js, HeartsArt.js)
- Add skill-scaled AI for both: Go Fish gains recall/random-ask memory and a
  no-re-ask rule per turn; Hearts tracks voids, the Queen, and moon shots
- Support Go Fish pairs mode, book tracking, and heads-up (minOpponents 1)
- Extend Hearts rules with configurable target score and add/subtract moon modes
- Add headless verification suites (tools/verifyGoFish.js, tools/verifyHearts.js)
  covering rules, AI legality, layout collisions, and all-AI soaks
- Enable skill selection for both games in OpponentSelectScene
2026-11-24 21:53:55 -07:00
Brian Fertig e09986d53f
Rework Uno and Skip-Bo on the shared card-table scene with skill-scaled AIs
- Add `src/ui/cardtable/` kit (CardTableScene base class, TableGeometry,
  TableArt, AITiming) so both games share perspective layout, card sprites,
  ghost hands, plates and opponent pacing.
- Rewrite Uno: official rules plus optional stacking and draw-until-playable,
  UNO! call/catch, Wild +4 bluff/challenge odds, scoring to a target with
  match play, and a 90s-kitchen table with baked card art (UnoArt/UnoTable).
- Rewrite Skip-Bo: skill-scaled AI with stock-chain search and opponent-aware
  discards, match scoring to 500, dining-room table with vintage card art
  (SkipBoArt/SkipBoTable).
- Allow Uno to be played against a single opponent (minOpponents 1).
- Expose the skill slider for uno and skipbo in OpponentSelectScene.
- Add headless `tools/verifyUno.js` and `tools/verifySkipBo.js` covering
  rules, AI legality/skill ordering, layout bounds and all-AI soaks.
2026-11-24 20:57:02 -07:00
Brian Fertig a1bf2bf783
Redesign Phase 10 with a rec-room table, skill-scaled AI, and full tooling
- New perspective card-table layout (Phase10Table.js) and baked art module
  (Phase10Art.js): wood-paneled room, chrome-rim vinyl top, placemats,
  ghost hands, glow/spotlight effects, per-player-count backgrounds.
- Phase10Game rewritten around persistent card sprites with pose-based tweens:
  deal animation, staged laydowns on mats, hit/discard fly-ins, skip slams,
  turn spotlight, plate ladders, dock prompts, sort controls, tooltips, and
  keyboard shortcuts.
- AI (Phase10AI.js) now takes a 1-5 skill level: timing scales with hand
  speed and table pace, lower skills miss laydowns/hits, feed opponents,
  and skip randomly; higher skills avoid feeding phases and target real
  threats. Added adviseHand() for live coaching marks.
- Logic (Phase10Logic.js): orderGroupCards normalizes run position so hits
  work after out-of-order laydowns; skipTargets/applyDiscard enforce valid
  skip targets; takes log tracks discard pick-ups to break card loops.
- PhaseSpec gains groupStatus, laidGroupLabel, groupGoalLabel, cardName for
  live staging coaching and plate labels.
- OpponentSelectScene: enable the skill picker for phase10.
- tools/verifyPhase10.js: headless test suite covering rules, staging
  helpers, AI legality/timing, layout collision checks for 2/3/4 players,
  and an all-AI soak with win-rate assertions.
- NertsArt: export ensureGhostHand so Phase 10 shares the baked ghost-hand
  texture.
2026-11-24 19:08:34 -07:00
Brian Fertig e0fd2e5573
Add per-machine audio system with Gold Rush Gulch theme and speech cues
- Introduce an `audio` block on each machine definition to hold optional
  music, intro, bandit, and dynamite clip paths.
- SlotsGame now plays a per-machine theme track when the view opens and
  falls back to the shared soundtrack pool otherwise.
- Play one-shot intro cue and sequential spin cues (bandit discovery then
  tiered dynamite) after reels stop; cues queue so they never overlap.
- Suppress the stock sticky-wild sfx on Gold Rush Gulch since the bandit
  speech cue replaces it.
- Add music and speech assets for Gold Rush Gulch (theme, intro, bandit,
  one/two/triple dynamite).
2026-11-24 18:19:42 -07:00
Brian Fertig 523b946721
Rework Nerts as a real-time table with paced AI and full visual scene
- Replace the timer-based AI with a perception model (read/notice/pounce/chain/scan) so opponents pace like humans, pounce on awaited cards, and skip pointless work-pile shuffles; add ghost-hand reach/carry timing and a "too slow" race loss
- Add NertsTable.js (Phaser-free projection/layout for 2–4 players, hit-testing, drop snapping) and NertsArt.js (baked table felt/rim/placemats/foundation zone, score pad, ghost hand)
- Rewrite NertsGame.js around persistent card sprites that tween to their state positions: deal animation, countdown, drag with live legal-target highlights, smart click/hotkey plays, idle hints, stall detection with stock rotation/auto-resign, pause/settings modals, count-back scoring and a paper score pad
- Support draw-count setting (1 or 3), opponent pace, and stock rotation/reshuffle in NertsLogic.js; add live foundation counts and completion checks
- Add tools/verifyNerts.js headless suite covering rules, layout bounds/clearance for all player counts, AI pacing invariants, and a multi-round AI soak with card conservation and score checks
2026-11-24 11:08:52 -07:00
Brian Fertig 2d1a673b7e
Rework roulette into a full 3D table with both wheel variants
- Add European single-zero and American double-zero wheels with La Partage
  and the full set of inside bets (splits, corners, streets, trios, basket)
- Rebuild the scene around a perspective-projected felt: baked table art,
  3D wheel bowl/head/ball, chip stacks on the layout, and a dealer's rail
- Plan each spin physically (track, diamond strikes, fret hops) so the ball
  lands on the pre-chosen number instead of a tween to a fixed angle
- Add AI personalities (grinder, sprinkler, martingale, chaser, sections),
  late bets, and per-player memory for the Martingale progression
- Introduce table limits, call bets/racetrack with neighbour stepper, history
  board, wheel cam, speed/felt/table toggles, and tooltips with house edges
- Extract geometry and rules into Phaser-free modules and add a headless
  verification suite covering payouts, hit-testing, AI, and the ball planner
2026-11-24 09:59:28 -07:00
Brian Fertig 7a3205799b
Overhaul craps with full table art, 3D dice, expanded bets, and AI
- Add perspective-projected craps tub: baked felt layout, padded rail, diamond-pyramid walls, house bank, dice bowl, ON/OFF puck (CrapsArt.js)
- True 3D die rendering and physics-lite throw that relabels the cube to match the rolled face (CrapsDice.js)
- Table geometry module with zones, seats, bet lanes, hit-testing shared by art and input (CrapsTable.js)
- Expand rules: Buy/Lay/Big/Hardways and all one-roll props; 3-4-5× odds caps, barred 12s, called-on working, contract bets, come-bet travel, plain-English payout explanations (CrapsLogic.js)
- Rewrite the scene: shared casino dock, per-seat chip stacks in the rail, felt click-through hit-testing, learner hints, roll-history board, results card, speed/felt settings (CrapsGame.js)
- AI profiles gain hardway/prop/lay appetite and injectable RNG for deterministic verification (CrapsAI.js)
- Add headless verifier: 36-combo resolution tables, exact Markov house edges, chip-conservation AI soak, geometry and dice-throw checks (tools/verifyCraps.js)
2026-11-24 09:18:11 -07:00
Brian Fertig d33ab09ae0
Redesign Hold'em table with casino oval art and proper betting rules
- New baked table art (HoldemArt.js) on a shared perspective kit
  (CasinoGeometry.makeProjection), plus layout solver in HoldemTable.js
  that fits cards, stacks, bets and buttons around the felt without overlap
- Correct min-raise tracking via lastRaiseSize; pot odds now include
  current street's bets
- All-in runouts: when nobody can act, deal the board out with live
  equity pills instead of stalling on a single actor
- Side-pot logic fixed so players who bust in the hand still claim their
  share; action skips all-in seats
- New HoldemShowdown.js helpers (bestFive, equity, hand labels, raise
  presets, finishing places) and headless test suite tools/verifyHoldem.js
- Rebuilt UI: casino dock with pre-action toggles, bet slider + pot-size
  presets, tournament panel, TV-style showdown with card glow, busted
  watch/skip flow, and cash-out confirmation on leave
2026-11-23 22:46:40 -07:00
Brian Fertig a103c9ed74
Refactor casino tables to shared perspective geometry and art kit
- Extract table layout into Phaser-free *Table.js modules so headless verify scripts can test projection, hit-testing, payouts, and scoreboard roads
- Add shared casino art pipeline (CasinoArt/CasinoCards/CasinoChips/CasinoDock) that bakes felt, rail, cards, chips, and HUD dock from one perspective model
- Replace per-game hand-drawn tables, betting UI, and chip rendering in Baccarat, Blackjack, and Pai Gow with the shared kit plus game-specific markings
- Add keyboard shortcuts, rebet controls, and a Baccarat bead plate/big road scoreboard
- Extend verifyBaccarat/verifyBlackjack/verifyPaiGowPoker with layout, overlap, and source-lint checks
2026-11-23 20:10:11 -07:00
Brian Fertig b2df177bf3
Add themed attract kits and props for all seven slot machines
- Introduce SlotsAttract.js: a reusable "attract kit" (MachineStage) that builds a lit cabinet, LED light-show state machine, marquee, idle/attract mode, tumble meter, optional background/marquee video, per-machine sound layer, and shared baked textures
- Add per-theme props modules wired through the stage hook contract:
  - SlotsGoldRush.js — wanted poster, TNT plunger, lanterns, ore-cart bonus
  - SlotsDragon.js — sleeping dragon + sneaking knight, jackpot plaques, hold & spin visuals
  - SlotsAbyssal.js — procedural mermaid puppet, pearl ladder, sea life, bubble tumbles
  - SlotsPharaoh.js — winged sun disk, obelisks, tomb doors, expanding wild beam
  - SlotsLucky.js — candle light, rolling odometer, belly glass, coin tray, chrome lever
  - SlotsFruit.js — fruit-stand awning, payline lamps, neon cherries, HOLD/NUDGE push-buttons
  - SlotsLiberty.js — clockwork gear train, brass bell + striker, coin run, split-flap PAID
- Extend SlotsReels with themed glass backplates, reel peek (vintage drums), idle wobble, dim/spotlight/squash helpers, cell halos, wind-up stop, and anticipation hooks
- Upgrade SlotsFx with per-theme line styles (gold vein, fire, bubbles, sunbeam, lamp, slash), glow cells, confetti, bubble bursts, accelerated counter ticks, and themed coin textures
- Update SlotsGame to route attract machines through MachineStage, add a bottom control bar, modal paytable overlay, and per-machine props registry; refactor video loading into loadLoopVideo
- Add seven background loop videos under assets/videos/slots/
2026-11-23 19:01:33 -07:00
Brian Fertig 7e31a68794
Add attract videos to slots lobby cards and background
- Loop a muted casino-floor clip behind the lobby with a dim layer for readability
- Play per-machine attract clips in each card's marquee area, unmuting on hover
- Fall back to existing static art if video fetch or playback fails
- Remove best-win/jackpot stat text from cards and reposition marquee lights
2026-11-23 14:36:35 -07:00
Brian Fertig d0d412cea9 Add Geometry Wars arcade shooter with warp grid and neon bloom
- Headless sim (GeometryWarsLogic) with evolved and pacifism modes,
  seeded RNG for deterministic replays, and a fixed-tick accumulator loop
- Spring-lattice warp grid that reacts to bullets, explosions and black holes
- Additive neon bloom post pipeline plus a particle field for streaks/rings
- Vector font, title screen with mode cards, HUD, pause and game-over panels
- Register the game in the registry, scene dispatch, soundtrack and assets
- tools/verifyGeometryWars.js: headless checks incl. a bot soak across seeds
2026-10-04 19:56:07 -06:00
Brian Fertig e3c764a981 Add toggleable rules panel to Tents game
- Introduce a slide-in "How to Play" panel listing the four Tents rules,
  kept in sync with the engine's own rule comment so the UI can't drift.
- Add a Rules button in the HUD parked where the panel's Close button will
  appear, so opening reads as one control morphing rather than two controls.
- Animate the panel open/close and swap visibility/interactivity between the
  Rules and Close buttons to avoid stacking both in the same spot.
2026-10-01 19:42:47 -06:00
Brian Fertig 9d82073e5a Update game icons in PNG and PSD assets 2026-09-14 19:54:31 -06:00
brianfertig 068da0a8ce Merge pull request 'Defender' (#12) from Defender into main
Reviewed-on: #12
2026-09-06 23:45:31 +00:00
Brian Fertig ed7620ee7b Replace chevron player ship with detailed asymmetric interceptor silhoue
- Introduce SHIP_HULL polygon and ENGINE_COLOR for a sharper, cyberpunk-style ship
- Swap strokeChevron for drawShip, adding fuselage spine, canted canopy, dorsal-fin greebles, and a speed-reactive neon engine flare
- Update lives readout to render mini ship glyphs instead of chevrons
2026-09-06 17:44:19 -06:00
Brian Fertig 03d35b0b00 Overhaul boss encounters into distinct escalating profiles per level
- Replace flat kind/secondaryKind model with named BOSS_PROFILES that each carry their own move list, speed multiplier, and attack cooldown, so later fights are harder along every axis at once.
- Add six new attack patterns (ring, spread, spiral, aimed, wall, reinforce) dispatched via round-robin; bosses under half health can swap to a harder phase2Moves set.
- Surface the boss name in the WARNING banner and extend its display time.
- Extend verifyDefender.js with check 10: asserts HP/cooldown monotonicity, valid move names, dual-phase presence, and live-simulates each level's boss to confirm declared move ordering and phase-2 takeover.
2026-09-06 15:54:20 -06:00
Brian Fertig 79fb74d9b2 Add Defender arcade game with wireframe rendering and headless verificat
- Implement full Defender gameplay: boids swarmers, walkers, abductors, boss fights, humanoid rescue/escape state machine, combo multiplier, and overdrive timescale across 5 levels
- Render all entities as procedural Graphics strokes (glow-stroke pair) with a toroidal wraparound world, per-level accent palettes, CRT overlay, and a custom vector font for banners/title
- Register the game in the registry, scene dispatch, asset manifest, and soundtrack overrides so it appears alongside other arcade titles
- Add tools/verifyDefender.js covering wrap math, seam-adjacent boids, every rescue transition, overdrive thresholds, entity leak bounds, boss/level tally, spiral-of-death guard, determinism, and a Monte-Carlo bot soak
2026-09-06 15:14:42 -06:00
brianfertig 71a919e0cb Merge pull request 'Add animated background video and still backdrop to Spelling Bee' (#11) from Game-Polish into main
Reviewed-on: #11
2026-09-03 02:57:38 +00:00
Brian Fertig 5a5f30bca7 Add animated background video and still backdrop to Spelling Bee
- Loop a muted bee-on-flower clip behind the board during the intro,
  fading it in over the felt base with a dim layer for readability.
- Reveal the difficulty panel on the first full loop of the clip, with a
  ~20s fallback timer and an immediate reveal on video load/playback error.
- Swap the intro clip for a preloaded honeycomb PNG once a puzzle starts;
  fall back to the felt rectangle if the image is unavailable.
- Register the still background in the asset manifest so GameRoomScene
  preloads it before the scene launches.
2026-09-02 20:55:06 -06:00
brianfertig 858dc9535d Merge pull request 'Game-Polish' (#10) from Game-Polish into main
Reviewed-on: #10
2026-09-02 05:10:11 +00:00
Brian Fertig 52eaff8b96 Add word-steered board generation and level-scaled special tiles to Book
- Introduce BookworkSteering with context-aware letter placement: class
  steering, vowel-band control, and a real-word completion boost so boards
  stay playable and avoid dead/vowel-clumped states across refills.
- Make gold/diamond spawn chances configurable per level via a linear ramp
  (specialTiles in bookwork.json), wiring the values through clearAndRefill
  and refillSteered instead of hard-coded constants.
- Add verifyBookwormBoard harness comparing baseline vs steered boards on
  word availability, dead-board rate, and simulated session survival, and
  extend verifyBookwork with special-tile schedule checks.
2026-09-01 23:09:12 -06:00
Brian Fertig 44de2fb049 Rename Bookwork to Bookworm and add dictionary-steered grid generation
- Update display name in registry, scene title, README, and tooling references
- Load ENABLE word list at runtime; fall back to unsteered random on failure
- Introduce makeSteeredGrid/refillSteering helpers for class/vowel-aware letter placement
- Export LETTER_WEIGHTS from BookworkLogic for reuse by the steering module
- Add `steer` tuning block (wordBoostK, classThreshold/damp/boost, vowelBand) to bookwork.json
2026-09-01 22:57:07 -06:00
brianfertig e3d2fdee34 Merge pull request 'Game-Polish' (#9) from Game-Polish into main
Reviewed-on: #9
2026-09-02 02:51:15 +00:00
Brian Fertig 3c2cf462ed Polish Mahjong layout: reposition portraits and reference panel
- Rename card back themes (Cthulhu, Cyberpunk, Nautical, etc.) and update
  artwork assets to match
- Move player portraits just left of each seat's tiles so they read as
  belonging to that player without covering any tile
- Reposition the "Hands" reference button clear of seat 2's melds/bonus
  tiles, and hide seat 1's portrait video while the panel covers it
- Auto-close the open reference panel whenever claim or win/kong buttons
  appear so nothing clickable is hidden
2026-09-01 20:49:47 -06:00