Skip to content

Repository files navigation

PlayLink

Real-time browser games with shareable room links. Play Tic-Tac-Toe or Connect 4 with a friend, or practice against a built-in bot. No accounts, just a nickname.

Demos

Tic-Tac-Toe vs Bot

Tic-Tac-Toe vs Bot demo

Connect 4 vs Bot

Connect 4 vs Bot demo

Features

  • Play with a friend: create a room, share the link, play together
  • Play vs Bot: solo mode, no extra server needed
  • Live chat: message your opponent in multiplayer rooms
  • Play again: rematch in the same room (opponent must accept)

Tech stack

Next.js · TypeScript · Tailwind CSS

Setup

npm install

Run locally

Bot mode (one terminal):

npm run dev

Open http://localhost:3000 and choose Play vs Bot.

Multiplayer (two terminals):

npm run dev:party   # WebSockets on :8787
npm run dev         # site on :3000

Then choose Play with friend, create a room, and share the link.

If friend mode stays on "Connecting…", the multiplayer server (dev:party) is not running.

Project structure

app/           Pages and routes
components/    UI
games/         Game rules, win detection, bot AI
party/         Multiplayer server
lib/           React hooks

Playable demo

NOTE: This link might become inactive someday. https://playlink-nikolay-games.vercel.app/

License

MIT

Releases

Packages

Contributors

Languages