Downloads · 30 days
0
raf-fonseca/checkmate-chess
checkmate-chess is a reinforcement learning model from raf-fonseca. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A neural network trained to play chess using MCTS (Monte Carlo Tree Search) guidance.
Downloads · 30 days
0
Access
Public
Updated Nov 16, 2025
Repo size
203 MB
Likes
0
Public
Click a slice to open those files.
.pt40.7 MB · 100%
From the Hugging Face model README
A neural network trained to play chess using MCTS (Monte Carlo Tree Search) guidance.
This model evaluates chess positions and suggests moves. It outputs:
The model is trained on game positions with format:
{"fen": "...", "move": "e2e4", "value": -1}
from inference import ChessModelInference
import chess
# Load model
model = ChessModelInference("checkmate_model.pt")
# Get predictions
board = chess.Board()
P, V = model.predict(board.fen(), board)
print(f"Position value: {V}")
print(f"Best moves: {sorted(P.items(), key=lambda x: x[1], reverse=True)[:3]}")
This model is designed to work with MCTS for move selection. The policy priors guide the search, while value estimates help evaluate unvisited positions.
MIT License