- 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
- 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
- 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
- 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.
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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.
- 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.
- 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
- 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
- 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)
- 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
- 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
- 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
- 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.
- 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
- 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.
- 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
- piecesBig counter guard used .parent (always undefined on container
children in this Phaser build — they get .parentContainer), so the
'PIECES' count-up never rendered; drop the dead guard.
- buttonHit() had the same .parent assumption; use .parentContainer.
- Add tools/smokeJigsaw.mjs: headless-Chromium smoke test driving
menu -> play -> win showcase (camera settle, counter, confetti,
frame/shine) -> Play Again -> Menu -> play again, asserting zero JS
errors. Verified pass in browser.
Test now also asserts the menu is back to its original shape (no random-start button), the initial preview and thumb name match the random pick, Start Puzzle begins exactly that image, and the original 🎲 Random button still randomises the menu preview.
The menu always opened on the first artwork; now imageIndex is randomised right after loadArtwork(), so each visit to the picker shows a different initial puzzle. The existing Random/prev/next buttons are unchanged (previous random-start button reverted in 4f2d299). Test page + CDP driver verify 8 fresh page loads all land on a valid in-range image with its preview loaded, with variety across loads.
New '🎲 Start Random' button picks a random picture (never the current one when there's a choice) and starts the puzzle immediately, keeping the selected difficulty. Menu panel grows 820→890 to fit it. Headless-chromium test page + CDP driver verify: button placement, 8/8 random starts reach playing state, image variety, single-image guard, and difficulty preservation.
- Introduce group-based table assembly: grid-adjacent pieces snap together on the table, drag as one rigid unit, and lock onto the board as a block
- Extract join/lock rules into pure `resolveDrop` in JigsawLogic.js with a headless verification suite (tools/verifyJigsaw.js) covering fit guarantee, joining, locking, and win counting
- Replace the flat top-bar buttons with a "Menu ▾" dropdown panel to free the top-right corner for the shared site music HUD
- Integrate MusicPlayer soundtrack via getGameSoundtrack() and pin it to the fixed HUD camera
- Add ~25 new steps: nearby stars, pan/zoom lesson, star info, fleet movement, home star/system view, colony management (allocation, focus), end turn, and the full Empire menu tour (Research, Diplomacy, Leaders, Colonies)
- Introduce hotspotAction, starPick, advanceOn modes (starPick/fleetInFlight/external), and advanceAction fields in tutorial data schema with validation
- Add VegaStarMap.fitToWorldBounds and extend pickFitZoomIndex to support a narrowed viewport area so the reachable-stars frame avoids the docked panel
- Bypass openModal gating for System View, Colony View, and Empire screens by calling their open functions directly from VegaTutorial; wire onClose/onColonyOpen callbacks to advance()
- Add tutorialFreePan flag so pan/zoom work during the free-pan step while all other map interactions stay frozen
- Add multi-target resolution (nearbyStars returns an array), invisible-shape holes, and per-star click hotspots in the tutorial overlay
- Update verification script to allow buttonless modal steps that advance via external callbacks
- New data-driven script (data/mastervega-tutorial.json) with intro modal and three callout steps over the fleet marker and side-panel ship rows/count controls.
- Split into Phaser-free VegaTutorialData.js (schema validation, interpolation, target-id registry) and Phaser VegaTutorial.js (darken overlay, accent rings, callouts, hotspot, skip confirm, state machine).
- Tutorial auto-opens on every brand-new game and is re-triggerable from the menu when the starting fleet is still in orbit; malformed JSON disables the feature with a warning instead of crashing.
- Add D.tutorial depth (just below detail) so an invited ship-detail window layers above the overlay, and expose VegaSidePanel.tutorialRegion() for screen-space panel regions.
- Register the tutorial asset in the manifest and add verifier section 12 covering schema, targets, voice clips, placeholders, and interpolation.
- Add dedicated place, remove, win, and puzzle-start intro audio assets
- Register the new cues in the asset manifest and SFX key map
- Replace generic UI sounds with Tents-specific cues for placement, removal, and win
- Play the intro jingle on startGame, ducking the soundtrack until it completes
- Update smoke tests to assert the new jingles and cues fire
- Implement full Tents & Trees scene (TentsGame.js) with day-to-night
sky transition, campfire/ember/firefly effects, hover hints, violation
feedback, and a win panel
- Add pure board model (TentsLogic.js) with backtracking solver,
unique-solution puzzle generation across four difficulties, toggle/
diagnose/solved helpers — all unit-testable in Node
- Register the game in gamesRegistry, main scene list, and slug dispatch
- Update game-icons.png with a new icon frame for Tents & Trees
- Add tools/verifyTents.js (solver + play-state unit tests and generation
soak) and tools/smokeTents.js (Phaser-stub smoke test driving the full
select → play → solve → win → restart flow)
- Resolve hand card index from the container at event time instead of
capturing it when handlers are bound, preventing the "wrong card on
second drag" bug after a reorder.
- Enable drag-to-arrange in both draw and discard phases; clicking a card
during draw now shows guidance rather than discarding.
- Add discard-pile click target so a selected card can be discarded by
clicking the pile, and extract shared `_setupPileClick` helper to reduce
duplication.
- Add `tools/regressionPipePuzzleUnhover.cjs`, a Playwright regression
test verifying that Phaser's `killTweensOf(target, 'prop')` no longer
clobbers in-flight rotation tweens on pointerout/pointerover.
- Remove extra-edge generation and cross pieces; board is now a single random spanning tree (one unique route between every pair of cells, no loops)
- Update leak rendering to place droplets on exact open edges using DELTA/EDGE and render water/flash layers above tiles in the container
- Adjust mini preview tiles and difficulty config (drop `extra` param)
- Rework tutorial to explain tree structure, scattered dead ends, and branch-by-branch solving strategy
- Update verification tool: assert tree edge count, no 4-way cells, leaf distribution across rows, faucet row variety, and board randomness; replace cross-based fixture with a valid tree
Replace the single Hamiltonian-path model with a spanning-tree + extra-edges
approach that produces boards full of T-pieces, crosses and dead ends. The
win condition is now simply "zero leaks" — every socket matched to a
neighbour that opens back — instead of requiring one continuous path from
faucet to drain.
Key changes:
- Logic: generate puzzles via randomized Kruskal spanning tree plus tunable
extra edges per difficulty; add bitCount, countLeaks, and derived
angleFor/canonical rotation table
- Art: new tile textures for stub (dead end), T-piece, and cross;
tileKeyFor and angleFor now handle all five piece types
- Game: faucet and drain are fixed anchors (not rotatable); removed the
CONNECTED counter in favour of a simpler LEAKS stat; updated difficulty
tiers (6×6 through 10×10) with extra-edge counts; improved water
rendering contrast
- Tests: rewrite verify script for the new generation model (spanning tree,
connectivity, piece mix, no-leak solution); update smoke test to skip
anchor tiles
- Tutorial: updated rules, board reading guide, and tips for the branching
network variant
- Add fists weapon viewmodel with idle/hit animation states (220ms hit pose)
- Implement mouse-wheel weapon cycling that skips unowned weapons
- Add 33% chance for killed guards to drop ammo-clip pickups at death location
- Introduce campaign carry-over system preserving weapons/ammo/health between missions
- Fix stale 'attack' state clearing when enemies lose sight of player
- Extend save/load serialization to persist nextPickupId counter
- Update level-e1m1 with pistol pickup at spawn point
- Add comprehensive test coverage for all new features in verifyWolfenstein.js
- Add shotgun, machine gun, gatling gun, and plasma rifle weapons with
distinct fire modes (semi-auto, auto, burst) and damage profiles
- Refactor ammo from per-weapon pools to shared pools keyed by ammo type
(9mm, shells, plasma), allowing multiple weapons to share the same pool
- Add pickup system with 11 item types: 5 weapons, 4 ammo variants, and
2 health packs, all with spritesheet frames for rendering
- Update level editor with dynamic pickup dropdown populated from rules.json
- Generalize weapon viewmodel rendering to support multiple weapon images
with per-weapon bob/sway animation
- Add cosmetic pickup animations: vertical bobbing and orbiting sparkle
effects drawn in screen space around each pickup billboard
- Bump save version to v3 to invalidate old saves with incompatible ammo
structure
- Update keyboard bindings for weapon switching (keys 1-6)
- Add comprehensive test coverage for new weapons, burst fire mechanics,
ammo pooling, and pickup behavior
- Rename weapon_gattling.png to weapon_gatling.png to fix spelling
Introduces a new "Object" entity type that blocks movement but not sight/bullets, distinct from walls and pickups:
- **Data**: New `objects` array in level JSON (`{x, y, frame}`), with `data/wolfenstein-objects.json` as the frame registry (Tall Bush, Gold Eagle)
- **Artwork**: New `objects.png` spritesheet registered in `wolfenstein-artwork.json`; placeholder texture via `paintObject()` in WolfensteinArt.js
- **Logic**: Objects stored in `state.objects`, with a derived `map.objectBlocked` Set checked only by movement collision (`isWallCell`) — raycaster/sight/bullets never read it, so objects are see-through and shoot-through by construction
- **View**: Rendered as billboard sprites in `_drawSprites` with ground-anchored positioning (bottom edge on floor) and asymptotic depth sorting that stays below the weapon viewmodel
- **Editor**: New "Object" tool category with dynamic dropdown; click open floor to place/remove (toggle), click wall is a no-op; teal square indicator on board
- **Validation**: `validateLevel` checks objects sit on open floor; save/load round-trips with graceful degradation for pre-existing saves
- **Tests**: Verifies object blocks player movement but bullets pass through
**Analysis of the Diff:**
1. **Binary Files:** `walls.png` and `walls.psd` are updated. This suggests an asset update, likely related to the "wolfenstein" theme mentioned in the paths.
2. **JavaScript File:** `tools/verifyWolfenstein.js` is modified.
* A new test case is added under `section('4. Enemy AI');`.
* The test verifies that an enemy (guard) alerts when hit by a projectile, specifically in a scenario where:
* Visual detection (LOS+FOV) is blocked/blind (guard facing away).
* "Heard gunfire" alert path is blocked (different room/door logic).
* The test sets up a specific level layout, forces a door open, fires a pistol, and checks if the enemy's state changes from 'idle' to something else (alerted) and health drops.
* It explicitly mentions fixing an issue with `stepDoors` auto-close countdown underflow by setting `timer`.
**Synthesis:**
The primary functional change is adding a test case to ensure that direct hits alert enemies even when other alert mechanisms (vision, sound through doors) fail. The asset changes are likely incidental or part of the same feature branch (Wolfenstein theme).
**Drafting the Commit Message:**
* **Subject:** Add test for enemy alert on direct hit bypassing vision/sound checks
* **Body:**
* Update Wolfenstein wall assets (PNG/PSD).
* Add verification test in `verifyWolfenstein.js` ensuring enemies alert when shot, even if they cannot see the player or hear gunfire through doors.
* Fix door timer initialization in the test to prevent auto-close interference during projectile flight.
**Refining for Conciseness:**
Subject: Add enemy hit-alert test and update Wolfenstein assets
Body:
- Update `walls.png` and `walls.psd`.
- Add a test case in `verifyWolfenstein.js` verifying that direct hits alert enemies unconditionally, independent of vision cone or room-based sound alerts.
- Ensure door state is correctly initialized in the test to prevent auto-close interference with projectile simulation.
Let's make it standard conventional commit style if possible, or just clear and descriptive.
**Final Polish:**
Subject: Add test for unconditional enemy alert on direct hit
Body:
Update Wolfenstein wall assets (`walls.png`, `walls.psd`).
Add a new test case in `verifyWolfenstein.js` to verify that enemies alert when directly hit by a projectile, even when visual detection (LOS/FOV) and sound-based alerts (through doors) are inactive. This ensures the direct-hit alert path works independently.
Also fixes door timer initialization in the test setup to prevent auto-close logic from interfering with the projectile simulation.
This looks good. I will provide just the message as requested.
This refactors weapon/enemy combat systems to support per-weapon cooldowns,
fire modes (auto/semi), and data-driven damage rolls via ammo types. Guards
now use the pistol's stats for ranged attacks and can be stunned by non-lethal
hits. The level editor now includes a directional facing picker for newly placed
enemies and displays enemy orientation as arrows instead of dots.
Key changes:
- Logic: Replaced single weaponCooldownMs with per-weapon cooldowns map; added
prevFireHeld for semi-auto trigger-edge detection; guards now reference real
weapon definitions via rangedWeapon; projectiles carry ammoType and resolve
damage at hit time using rollDamage(); non-lethal ranged hits apply stunMs to
enemies, freezing their AI until it expires.
- Rules: Added ammoTypes array with damageMin/damageMax; weapons now specify
fireMode and ammoType (projectiles) or damage (melee); enemy definitions
include stunMs and reference weapon IDs instead of hardcoded projectile stats.
- Editor: Added FACING_DIRS constants and drawFacingPicker() overlay that lets
users click N/S/E/W neighbor cells to set a just-placed enemy's facing;
enemies now render as directional arrows showing their spawn orientation;
pendingFacingEnemy state tracks the in-progress pick across tool switches,
undo/redo, and level resets.
- View: Added GUARD_FRAME.stunned (frame 9) which takes visual priority over
all other states when e.stunMs > 0, ensuring the flinch pose displays even if
the enemy's internal state still reads 'attack' or 'chase'.
- Data: Expanded level-e1m1 to 19x21 grid with repositioned doors/enemies/exit;
bumped SAVE_VERSION to 2 since player.cooldowns and prevFireHeld are new
required fields absent from v1 saves.
- Tests: Added coverage for semi-auto trigger-edge behavior, stun application
and duration, melee non-stun behavior, damage roll range bounds, and guard
projectile ammo type/cooldown spacing; updated existing tests to use new
cooldowns/ammoType fields and toggle fireHeld for repeated shots.
Add computeRooms + alertEnemiesInPlayerRoom: a gunshot now alerts every
idle guard sharing the player's room regardless of range/LOS/cone. A
door cell is always treated as a room boundary for this purpose, even
when fully open — two rooms joined only by a doorway stay distinct
("gunfire carries through the room, not through doorways").
Fix _guardFacing side-walk/side-idle flip: was `rel > 0`, read
backwards in-game, now `rel < 0`.
Cover with three verifyWolfenstein cases: same-room alert fires,
behind-closed-door does not, through-open-door does not (door forced
slide=1 / wall zeroed to exercise the slide-independent path).
- Implement 90° field-of-view check for idle/patrolling guards (only alerts when player is within cone, in range, and has clear line of sight)
- Change patrol behavior: 0-1 waypoints ping-pong, 2+ waypoints form a one-way loop (home → nodes → home → ...)
- Reduce patrol speed to 50% of chase speed for natural movement
- Update editor to display loop closing line when 2+ patrol nodes exist
- Add new weapon sprite images (gattling, machinegun, plasma, rocket, shotgun)
- Extend map parser to support patrol route definitions via `opts.patrols`
- Add patrol routes to e1m1 (guard at 2.5,18.5) and e1m2 (guard at 9.5,8.5)
- Add comprehensive tests for vision cone (inside/outside edge cases) and patrol loop/ping-pong behavior
Movement & collision:
- stepSeparation (TALogic) replaces the hard "snap unit to nearest clear
tile centre" correction with a circle-vs-blocked-tile push proportional
to overlap, damped by separationStiffness — no more teleport-yank,
corner-bouncing, or stalling in exact-width corridors (caught as an
AI-vs-AI win-rate regression in testing).
- servicePathQueue now routes at a unit's exact required clearance instead
of padding +1, so traffic spreads across all passable tiles rather than
funneling into a few wide chokepoint corridors.
- TAArt's structure painter falls back to a generic spinning glyph for
topperFrame buildings.
Upgrades (new rule: upgradesFrom):
- A building may be placed directly on top of a friendly building it
names at the same tile/footprint, consuming it for a 50% refund of the
replaced building's OWN cost (not a price discount) — implemented via
TALogic.findUpgradeTarget and an army-aware canPlaceAt.
- New definitions: nuclearplant (upgrades energygen, frame 22) and
advancedmassgen (upgrades massgen, frame 24).
- compileRules (TARules) validates upgradesFrom references and topperFrame;
sprites.md documents the semantics.
- New map m06 "Annihilation" (medium, snowfields, Klaxon skill 5, seed
90123 — pre-vetted from the original sweep for early-economy balance).
Tests (tools/verifyTotalAnnihilation.js):
- Section 4d: pathfinding routes around obstacles and a unit threads a
corridor exactly its own width.
- Section 5b: obstacle push is a bounded per-tick nudge (not a
teleport), settles clear without oscillation, a unit ordered past an
obstacle arrives, and no stuck-give-up flagging.
- Upgrade suite: exact 50% refund credited in place, fresh-ground builds
still work, enemy-owned and mismatched-type targets rejected, reverse
nuclearplant/energygen pairing, and canPlaceAt without an army never
grants upgrade placements.