This AI uses a Minimax algorithm with depth-limited search and alpha-beta pruning to make
smarter
moves.
- Minimax Algorithm: Evaluates moves a few turns ahead.
- Winning & Blocking: Looks for immediate wins, then blocks threats.
- Alpha-Beta Pruning: Skips branches that can’t change the outcome.
- Move Evaluation: Prefers lines of three and four with open ends.
- Center Priority: Favors the center column for more chances.
Challenging yet fair—like a lightweight chess mindset for Connect 4.