Skip to content

Chess board

177

The Chess board node is the central logic manager for chess-based puzzles. It maintains the current state of the board, validates moves against standard rules, and keeps track of game history. This node is essential for puzzles where players must reach a specific position or play a short sequence of moves to succeed.

When to use this node: * Move Validation: Ensuring that players only make legal chess moves on a physical magnetic board or a custom tablet interface. * Winning Conditions: Using the checkMate output to trigger a room event (like opening a secret compartment) when the player solves the puzzle. * Turn Synchronization: Directing game flow based on whose turn it is using the WhiteMove or BlackMove outputs.

Pro Tip: The BoardFEN output provides a standard text-based representation of the board state. You can pass this to an external logger or a web API to monitor the game state remotely.

Connectors in

  • Move [type: string]
  • NewGame [type: action]

Connectors out

  • Board [type: string]
  • BoardFEN [type: string]
  • History [type: string]
  • WhiteMove [type: bool]
  • BlackMove [type: bool]
  • onWhiteMove [type: action]
  • onBlackMove [type: action]
  • isValidMove [type: bool]
  • checkMate [type: string]

Node properties

  • startBoard [type: string]
  • WhiteStart [type: bool]