A 2-player tic tac toe game, using a web socket server for real-time move updates.
- Dependencies:
- node
- npm
- Run
npm install
in both the client and server directories. - Start the server:
npm run start
. (PORT 3001) - Start the first client:
npm run start
. (PORT 3000) - Start the second client:
npm run start
.- should ask you to run on a different port since 3000 is taken
- should automatically choose 3002
- if it doesnt, add the port its running on to the CORS exception list in
server/src/serv.ts
in theio
definition.
- Visit http://localhost:3000 and http://localhost:3002 in separate tabs.
- PLAY!