Cledersonbc/tic-tac-toe-minimax

Minimax is a AI algorithm.

51
/ 100
Established

Implements recursive game tree search with alternating max/min player evaluation to find optimal moves in zero-sum games, scoring terminal states as win (+1), loss (-1), or draw (0). The algorithm exhaustively explores all valid board positions until reaching game-over conditions, then backtracks to select moves that maximize the current player's score. Includes Python implementation with interactive web demo and demonstrates how full game trees (549,946 nodes for tic-tac-toe) enable perfect play, while noting alpha-beta pruning optimizations for complex games like chess.

468 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 25 / 25

How are scores calculated?

Stars

468

Forks

255

Language

Python

License

GPL-3.0

Last pushed

Dec 27, 2023

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/Cledersonbc/tic-tac-toe-minimax"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.