A game of Noughts and Crosses written in TypeScript implementing a communication protocol written in Scribble.
Anson Miu, Francisco Ferreira, Nobuko Yoshida, Fangyi Zhou
Prerequisites:
- Node.js
brew install node
or equivalent
- TypeScript
npm i -g typescript
Install packages:
# Server
cd server/
npm install
cd ../
# Client
cd client/
npm install
Open a separate terminal for the Game Client and Game Server.
- Run the server:
cd server/
npm run-script build
npm start
- Run the client:
cd client/
npm start
- Access
localhost:3000
on 2 separate browser windows - Play!
Scribble protocol of game logic available as NoughtsAndCrosses.scr
.
Refer to server/README.md
and client/README.md
for details on the generated code and user implementation.
Update (25/02/2020): WIP code generation repository found under TypeScript-Multiparty-Sessions
.