Skip to content

ValiuchenkoVladyslav/ts-tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript ONLY TicTacToe

It compiles to literally 0 js

bun build main.ts
tsc main.ts

Tested on tsc version 5.5.4

How to play

Just edit the game type to start playing!

type Game = TicTacToe<[
  "C2",
  "A1",
  "B1",
  "A0",
  "B0",
  "A2",
]>;

To view game state hover over this type in your IDE

img

Some other screenshots:

X Wins

img

X's turn

img

Game error

img

Draw

img