Simple Connect Four game in TypeScript with use of Socket.IO.
- clone this repo
- run
npm i
to install required packages - run the server by running either:
3.1npm run devServer
to start development server (automatic reload)
3.2npm run build
followed bynpm start
- open 2 instances of
localhost:3000
in a browser (e.g. in separate tabs)1 or visit<server's ip address>:3000
on other devices in local network
- create rooms on the server
- enable players to join room by clicking on room's id
- improve styling
- migrate to TypeScript
Footnotes
-
Restarting the game may not work when opened in two separate tabs. โฉ