Skip to content

Battleship online multiplayer game as part of Nvision 2017

License

Notifications You must be signed in to change notification settings

nvision-2017/Battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NvisionBattleship

NvisionBattleship is a multiplayer Battleship game made with Node.js and socket.io. At the start of the game, five ships of different sizes are placed randomly in a 10 x 10 grid. The players then take turns firing shots at the opponent's grid until one player has sunk all of the opponent's ships.

Install

Step 1: Download/clone.

git clone https://github.com/thecodesome/NvisionBattleship.git

Step 2: Install dependencies.

npm install

Step 3: Start server.

node server.js

Step 4: Open http://localhost:8000/ in your browser to play.