A web-based 2-player BattleShip Game written in JavaScript and html. No secure multi-party computing (MPC) added. Written for Boston University's Software and Application Innovation Lab (SAIL) internship through Greater Boston Area Research Opportunities For Young Women (GROW).
Run npm in the command line from inside the project directory to automatically install the dependencies listed in package.json
:
npm install
Run a server in the command line by going to the project directory and running
node server.js
The output from the server will direct you to open localhost:5000
in a browser
- The two players must open
localhost:500
in seperate windows/tabs - 1 player creates the room and recieves a room code
- The other player joins that room with the room code
- Only two players can be in one game room
- You can only join a game that has already been created by another player Game instructions are displayed in the teal strip at the top of the browser window
Running the server requires Node, npm, and Express
Running the client requires socket.io