2 min read
@khelo/tic-tac-toe

tic-tac-toe gameplay image

Developed a CLI-based web game for playing Tic Tac Toe over local network (multiplayer) or against AI (3 difficulty levels).

Implemented automatic server discovery eliminating manual setup for multiplayer.

For AI, implemented the Minimax algorithm.

No setup required. To play, just run:

npx @khelo/tic-tac-toe@latest

Features

  • ✅ Multiplayer on the same Wi-Fi/LAN — no internet required
  • 🤖 Single-player mode vs. AI (Easy / Medium / Hard)
  • 🏠 Create or join rooms with a simple PIN
  • 💬 In-game chat with other players
  • 🔁 Instant rematch — with friends or AI
  • 🌓 Dark & Light mode — switch anytime