Skip to main content
← All courses
🎮

Game Logic

JavaScript

Implement 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

Start → Tic-Tac-Toe: Minimax AI
  1. 1

    Tic-Tac-Toe: Minimax AI

    Build an unbeatable AI using the minimax algorithm.

    ⚡ 50
  2. 2

    2048: Slide & Merge

    Implement the single-row merge that powers the whole 2048 game.

    ⚡ 40
  3. 3

    Minesweeper: Board & Reveal

    Generate a mine field and implement the flood-fill reveal.

    ⚡ 50
  4. 4

    Connect Four: Win Detection

    Drop discs and detect a four-in-a-row win in any direction.

    ⚡ 40
  5. 5

    Snake: Step Logic

    Drive the snake one tick at a time — movement, growth, and collision.

    ⚡ 60