Cledersonbc/tic-tac-toe-minimax
Minimax is a AI algorithm.
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.
Stars
468
Forks
255
Language
Python
License
GPL-3.0
Category
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.
Related frameworks
LazoVelko/Tic-Tac-Toe
An unbeatable game of Tic Tac Toe.
GantMan/tictactoe-ai-tfjs
Train your own TensorFlow.js Tic Tac Toe
mscroggs/MENACE
Machine Educable Noughts And Crosses Engine
GeorgeSeif/Tic-Tac-Toe-AI
A tic tac toe game with an AI opponent using minimax algorithm and alpha-beta pruning
grimmerk/alphago-zero-tictactoe-js
A TypeScript game framework based on AlphaZero/TensorFlow.js runs in browser to demonstrate...