OpenParable
Skip to content
← Back to skills

Rexboard Match And Puzzle

Development
rexboard-match-and-puzzle

Rexboard Match And Puzzle is an Agent Skill for development published in the rexrainbow/phaser3-rex-notes repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use this skill when working with RexBoard match, Match, board symbol matching, match-3, bejeweled-style RexBoard puzzles, wildcard symbols, dirMask, refreshSymbols, line patterns, array patterns, group matching, or board puzzle resolution. Triggers on: RexBoard match, RexBoard Match, board match, match-3, bejeweled, wildcard, dirMask, refreshSymbols.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/rexrainbow/phaser3-rex-notes/blob/HEAD/skills/rexboard/rexboard-match-and-puzzle/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/rexboard-match-and-puzzle, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

RexBoard Match And Puzzle

Use this skill for symbol and pattern matching on a RexBoard board.

Use This First

Choose the matching style:

NeedUse
Same-symbol linematch(3, callback) or another length
Specific patternmatch(['A', 'A', 'B'], callback)
Any-match validationanyMatch(...)
Connected same-symbol groupgroup(tileX, tileY)
Symbols stored on chess objectsrefreshSymbols(callback)

Match reports tile coordinates. Game code still swaps pieces, removes chess, spawns replacements, and animates results.

Required Setup

This skill assumes a RexBoard Board or LogicBoard exists. If symbols live on chess objects, use rexboard-board-and-chess first.

References

Read these only when needed:

  • references/match-config.md: setup, config fields, callbacks, and methods.
  • references/match-patterns.md: fixed-length, array, wildcard, direction mask, and group matching.
  • references/match-recipes.md: reduced recipes for matching symbols from chess, test swaps, and group rules.

Core Rules

  • Keep board occupancy and match symbols in sync.
  • Prefer refreshSymbols when symbols live on chess objects.
  • Use null for empty/no symbol; use an explicit wildcard symbol for wildcard behavior.
  • Use dirMask to limit which board directions are checked.
  • Do not expect Match to animate, destroy, or spawn game objects.

Source File Map

  • plugins/board/match/Match.d.ts: config, callbacks, methods, and result type.
  • plugins/board/match/Factory.js: match factory signature.
  • plugins/board/board/LogicBoard.d.ts: board traversal and chess lookup used by matching.

Related Skills

  • rexboard-board-and-chess: chess lookup, swaps, removal, and occupancy.
  • rexboard-grids-and-coordinates: direction masks depend on grid direction behavior.
  • rexboard-rendered-tiles-and-pieces: rendered puzzle pieces.
  • rexboard-movement-and-pathfinding: animated movement after match decisions.

Gotchas

  • Direction indexes depend on grid mode; configure dirMask after choosing quad/hex grid behavior.
  • Test-swap workflows must restore the board if the swap is rejected.