mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-27 11:20:40 -04:00
Some checks failed
Build and Push Docker Images / build (admin-dashboard) (push) Failing after 15s
Build and Push Docker Images / build (battleship) (push) Failing after 9s
Build and Push Docker Images / build (calculator) (push) Failing after 9s
Build and Push Docker Images / build (cv-project) (push) Failing after 9s
Build and Push Docker Images / build (inventory) (push) Failing after 10s
Build and Push Docker Images / build (library) (push) Failing after 10s
Build and Push Docker Images / build (messages) (push) Failing after 9s
Build and Push Docker Images / build (nodejs-mini-message-board) (push) Failing after 10s
Build and Push Docker Images / build (portfolio) (push) Failing after 9s
Build and Push Docker Images / build (restaurant) (push) Failing after 9s
Build and Push Docker Images / build (shopping-cart) (push) Failing after 9s
Build and Push Docker Images / build (signup_form) (push) Failing after 8s
Build and Push Docker Images / build (tictactoe) (push) Failing after 9s
Build and Push Docker Images / build (weather) (push) Failing after 9s
|
||
---|---|---|
.. | ||
devops | ||
src | ||
tests | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc | ||
babel.config.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
webpack.common.js | ||
webpack.dev.js | ||
webpack.prod.js |
Battleship
Description
Battleship is a web-based game where players strategically place ships on a grid and attempt to sink their opponent's ships by guessing their locations. This project is a digital implementation of the classic board game, built using JavaScript.
Local Development
Prerequisites
- Node.js (with npm)
Installation
- Navigate to the project directory:
bash
cd battleship
- Install dependencies:
bash
npm install
Build
- Build the project: This project uses webpack to bundle the code.
bash
npm run build
Run
- Start the development server:
bash
npm start
-
Open the game:
Open your web browser and navigate to
http://localhost:8080
to play the game.
Tests
- Run the test suite:
bash
npm test
This command will run the test suite using jest.