This application implements the popular game known as Battleship and it is the submission for The Odin Project: Battleship.
The key features are:
- Fast Paced Variation
- Fully Tested
- Cross-Platform Compatibility
- GIT
- NodeJS ^v21.0.0
- NPM ^v10.2.0
- Clone the repository
git clone git@github.com:jesusgraterol/battleship-top.git
- Install the dependencies
npm install
- Run the Webpack Build in
watch
mode
npm run serve
- Open the
./dist/index.html
file with your favorite browser.
- Run the Webpack Build
npm run build
- Push the new build to the
gh-pages
branch so it is deployed to Github Pages:
git subtree push --prefix dist origin gh-pages
- HTML5
- CSS3
- JavaScript
- Jest
- Webpack
# Unit Tests
npm run test:unit
# Integration Tests
npm run test:integration
# E2E Tests
N/A
Machine Upgrades:
- When a player's ship is hit, keep hiting the surounding tiles until it is sunk.
- Identify the best tiles to attack based on the player's remaining ships