End the chess game
end_gameFull Description
Ends the current game. User can resign or abandon the game.
Parameters (1 required, 1 optional)
gameIdstringThe game identifier
reasonstringReason for ending the game
resignabandonChallenge yourself to a game of chess against ChatGPT that thinks through each move in real time. You play white, the ChatGPT plays black — make your move and watch it respond.
end_gameEnds the current game. User can resign or abandon the game.
gameIdstringThe game identifier
reasonstringReason for ending the game
resignabandonmodel_moveThe AI (playing as black) makes a move. Use this after user_move when it's black's turn.
fromstringSource square (e.g., 'e7')
gameIdstringThe game identifier
tostringTarget square (e.g., 'e5')
promotionstringPromotion piece if pawn reaches last rank (q/r/b/n)
show_gameDisplays the UI for an existing chess game. Use this to resume or view a game in progress.
gameIdstringThe game identifier to display
start_gameStarts a new single-player chess game. The user plays as white, the AI plays as black.
user_moveRecords a move made by the user (playing as white). The move is validated and applied if legal.
fromstringSource square (e.g., 'e2')
gameIdstringThe game identifier
tostringTarget square (e.g., 'e4')
promotionstringPromotion piece if pawn reaches last rank (q/r/b/n)