TicTacToe in TypeScript
In my last post I’ve told you about how I’m writing (simple) games in TypeScript. In this post I’ll share the source code of a Simple TicTacToe game I rewrote in TypeScript. I’m using Visual Studio Code and the TypeScript plugin. I’m working on Linux, but on Windows you should be able to use the same instructions within the WSL2 environment. Quick start Type the following commands to get started: git clone git@github.com:mevdschee/typescript-tictactoe.git cd typescript-tictactoe curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash nvm install node npm install npm run dev Now use Visual Studio Code (with the TypeScript extension) to edit the content and see how the code is recompiled and the browser is reloaded when the code is saved. ...