← All coursesStart → Tic-Tac-Toe: Minimax AI
🎮
Game Logic
JavaScriptImplement the brains behind five iconic games — no DOM, no framework, just sharp algorithms. Minimax, flood-fill, win detection, and more: exactly what interviewers love to ask about.
Your progress
0/5 complete
- 1⚡ 50
Tic-Tac-Toe: Minimax AI
Build an unbeatable AI using the minimax algorithm.
- 2⚡ 40
2048: Slide & Merge
Implement the single-row merge that powers the whole 2048 game.
- 3⚡ 50
Minesweeper: Board & Reveal
Generate a mine field and implement the flood-fill reveal.
- 4⚡ 40
Connect Four: Win Detection
Drop discs and detect a four-in-a-row win in any direction.
- 5⚡ 60
Snake: Step Logic
Drive the snake one tick at a time — movement, growth, and collision.