Classic game of X and O on a 9 square grid
Requires Node v16+
npm install
npm start
- Tab will open automatically at http://localhost:3200/
- Enter a username and click 'Join'
- Click "Add Fake Player"
- Click "Reset game"
- Click "Join" for players you want to play
- Click "Start Game"
The game was designed to play in Scaled Resolution mode, 4:4 resolution, 1200 width.
{
"command": "npm start",
"name": "Launch Tic Tac Toe",
"request": "launch",
"type": "node-terminal"
},
Client is built using ReactJS. It will run inside an iframe and communicate with the parent frame which is the Simulator's client.
All assets (images, svg, audio) should be packed into a single client.bundle.js
file.
A browser-sync is included so that your changes are reflected immediately.
Server code is built using NodeJS code and bundled into a single server.bundle.js
file.
Simulator runs a simple frontend that displays your client.bundle.js
inside an iframe.
Simulator also runs a NodeJS express/socket.io server with a worker that uses vm2 to run your server.bundle.js
code.