built with Svelte + TS + Vite
Try it at: https://creative-hummingbird-c9b8e6.netlify.app/
- Download or git clone repository
- run
npm i
- when all packages are install run
npm run dev
to start dev server
It is possible to play either multiplayer ("offline" on the same machine) or single player (against an ai opponent), and only single games (no scoreboard).
The Ai has three levels of difficulty.
The levels are:
-
Picks random free field.
-
Continues best straight (row, column, or diagonal) that has the most own marks (x | o) and has no opponent marks.
-
Completes straight if only one field is missing, else if opponent lacks only one field to win block it (cannot prevent binds), or else continues best straight.