A simple implementation of tic-tac-toe using Node.js, TypeScript, the readline module, and events.
Main logic can be found at:
./src/game-logic
Clone the repo, install or enable yarn
if not installed, then run yarn
from your CLI.
-
Run
yarn dev
if you want to play around with the code. -
The project uses the command
yarn build
to compile the TypeScript code into JavaScript. -
Run
yarn build
, thenyarn start
to compile the TypeScript files and run the project.