Commit Graph

13 Commits

Author SHA1 Message Date
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 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 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 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 1298648e97 Polish opponent select scene and restore category on return
- Replace flat title/subtitle pills with brass Plaque headers in OpponentSelectScene for visual consistency with the game menu
- Shift opponent scroll area down (OPP_SCROLL_TOP 155 -> 180, height 440 -> 415) to clear the subtitle plaque band
- Pass selected category back to GameMenu via scene.start data on Back so the active grid is restored instead of resetting to default
- Add GameMenuScene.init() to capture incoming category and reset stale instance props (_currentCategory, _gridAnim) since scene.start reuses the existing instance
- Guard fadeIn target list with .filter(Boolean) to skip any uncreated elements
2026-08-31 22:21:03 -06:00
Brian Fertig ee60d7fa1c feat(swdbg): add card dealing animations and opponent hand visualization
- Animate card draws, plays, and row refills with smooth flight transitions
  and mid-flight reveal flips during initial deal
- Introduce slot helper methods for consistent card positioning across
  renderers and animations
- Show opponent hand as face-down fan with visible draw/discard pile counts
- Track pending card UIDs to prevent rendering cards mid-animation
- Support game-specific default playfields via gamesRegistry
- Add guardFreshButton to prevent accidental clicks from pointer event bubbling
- Add Starscape and Fantasy playfields; set Starscape as default for Star Wars
2026-07-05 14:44:03 -06:00
Brian Fertig ab6b2ce9fc feat: add Dungeon Boss and Star Wars Deckbuilder card games
Implement two complete card games with full rule engines, AI opponents
(5 skill levels), procedural rendering, and drop-in art support.

Dungeon Boss: Boss Monster-style dungeon building game for 2-4 players.
Players build dungeons of rooms and spells to lure and defeat heroes,
harvesting souls to win. Includes 8 bosses, 31 room cards, 16 spells,
and 41 heroes with class-based baiting mechanics.

Star Wars Deckbuilder: 2-player deckbuilding game. Players build decks
from faction and neutral cards, purchase from the galaxy row, bounty hunt
enemy units, and attack bases. First to destroy 3 enemy bases wins.
Includes 90-card galaxy deck, 10 bases with abilities, and the Force
mechanic.

Both games include:
- Pure logic engines (rules-verified by headless test suites)
- Synchronous heuristic AI with skill-based decision quality
- Phaser scenes with vector-rendered procedural art
- Drop-in sprite sheet support via JSON mappings
- Tutorial documentation and art specifications
- Registration in the game registry and scene loader
2026-07-03 07:32:41 -06:00
Brian Fertig e6d0b2ee5d feat: add Azul board game with tutorial videos and modal fix
- Implement Azul (tile-drafting game) with full game logic, AI (5 skill levels),
  spritesheet rendering, and animated wall-tiling/scoring
- Add Inês-flavored tutorial text and 96×96 tile spritesheet
- Register Azul in gamesRegistry, main.js, GameRoomScene, OpponentSelectScene,
  and PreloadScene
- Add tutorial videos for Blokus and Chinese Checkers
- Update Blokus and Chinese Checkers registry entries with hasTutorial: true
- Add Klaxon (mecha) tutorial for Blokus and Kage (samurai) tutorial for
  Chinese Checkers
- Fix TutorialModal close-button click fallthrough with transient shield overlay
2026-06-29 20:49:48 -06:00
Brian Fertig 52c78ae86a Major Port 2026-06-28 19:27:29 -06:00