Apply a move to the game and return the new state. Pass the move object exactly as returned by play_get_moves (format varies by family: chess uses {from,to}, go uses {coord} or {action:"pass"}).

post/api/tools/play_apply_move

Request

  • Base URL: https://tools.moddable.games
  • URL: https://tools.moddable.games/api/tools/play_apply_move
  • Auth: none declared

Request body

stateobject required

Game state object from play_create_game or a previous play_apply_move

moveobject required

Move object from play_get_moves (e.g. {from:"e2",to:"e4"} for chess, {coord:40} for go, {action:"pass"})

Response

Tool result

Changes

No recorded changes to this operation across all 1 revision of this API.