Skip to content

REST API Chess

179

The REST API Chess node allows you to expose the current chess game state to external web applications. It creates a dedicated endpoint on the ERGS web server Specifically formatted for transmitting chess data, making it the perfect bridge for custom-built tablet apps or specialized web interfaces.

When to use this node: * Custom Tablet Interfaces: Building a high-end, stylized chess interface in HTML/JS that communicates moves back to the main game engine. * Remote Observation: Allowing the Room Master to view the exact state of a chess board on their web browser via the /api/node/[API name] URL.

Connectors in

  • Move [type: string]
  • Board [type: string]
  • History [type: string]
  • ValidMove [type: bool]
  • isWhiteMove [type: bool]
  • CheckMate [type: string]
  • httpCode [type: integer]
  • contentType [type: string]

Connectors out

  • process [type: action]
  • Move [type: string]
  • peerIP [type: string]
  • postData [type: string]

Node properties

  • API name [type: string]
  • contentType [type: string]
  • httpCode [type: integer]