pyplAI

v0.1.0
io.github.plss12/pyplai-mcp Checked 3 days ago Published 10 days ago

Play board games against MCTS, minimax and ISMCTS, and use the same searches as tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_games

List the games you can play, their move format and the algorithms available for each.

get_rules

Full rules and move notation of a game, in Markdown. The same text as the rules://{game} resource.

ParameterTypeDescription
game *stringGame name from list_games.

new_game

Start a game against a pyplAI algorithm. If the opponent moves first, it has already moved in the returned state.

ParameterTypeDescription
game *stringGame to play. See list_games.
minimax_depthintegerSearch depth (moves ahead) for the minimax opponent.
openingMoves to play from the start, for both players, before the game is handed over. Use it to set up a position.
opponentstringOpponent algorithm. auto picks the strongest fair one for the game.
opponent_secondsnumberThinking time per move for Monte Carlo opponents.
play_asintegerYour player number. Player 1 moves first.
seedSeed for the opponent's search, to make its play reproducible.

get_state

Show the board as you see it, your legal moves and what has happened so far.

ParameterTypeDescription
game_id *stringId returned by new_game.

play_move

Play a move. The opponent replies straight away, so the returned state is your next turn (or the end of the game).

ParameterTypeDescription
game_id *stringId returned by new_game.
move *stringOne of the legal moves, as written in legal_moves.

analyze_position

Rank your legal moves with a search from the current position. It only uses information you have.

ParameterTypeDescription
game_id *stringId returned by new_game.
algorithmstringSearch to run. auto uses MCTS for perfect-information games and MO-ISMCTS for Phantom.
minimax_depthintegerDepth (moves ahead) for minimax.
secondsnumberSearch time for Monte Carlo algorithms.
top_kintegerHow many of the best moves to return.

end_game

Forget a game you no longer need.

ParameterTypeDescription
game_id *stringId returned by new_game.