Online Battleship Game is a multiplayer web-based implementation of the classic Battleship board game. It allows players to compete against each other in real-time battles on the high seas. The game features an intuitive user interface and interactive gameplay.
- Real-time multiplayer gameplay
- Place and preview ships on the board
- Interactive user interface for shooting opponents' ships
- Responsive design for seamless gameplay on different devices
- Display game state updates in real-time
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express.js
- WebSockets for real-time communication
- Heroku for dynamic website deployment
- Access the game website at https://online-battleship-a3a18b105d89.herokuapp.com/.
- Press Ready button and wait for another player.
- Drag and drop your ships onto the board to place them strategically.
- Wait for the opponent to place their ships.
- Take turns shooting at the opponent's ships by clicking on the cells of the grid.
- Sink all the opponent's ships to win the game!
- Enjoy endless battles with friends or random opponents.
- Clone the repository:
git clone https://github.com/jamesngn/Online-Battleship
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open your browser and navigate to
http://localhost:8000
to access the game.