This project involves implementing a backend server for the Battleship game using WebSocket library. The server handles player requests, room management, ship placements, and game mechanics for a multiplayer Battleship experience. Players can register, create or join game rooms, place their ships, and engage in battles against each other or the bot.
-
Clone and launch the front-end instance of the Battleship game
git clone https://github.com/rolling-scopes-school/websockets-ui.git npm install npm run start
-
Clone this repository in a separated folder
git clone https://github.com/ant0x64/rss-node-battleship.git
-
Install dependencies
npm install
-
Setup the ENV
You can change the base port used in the configuration file
<root_dir>/.env
. -
Run the back-end application
npm run start # dev mode npm run start:prod # build and run prod mode