jesusgraterol / battleship-top

This application implements the popular game known as Battleship and it is the submission for The Odin Project: Battleship.

Home Page:https://jesusgraterol.github.io/battleship-top/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Battleship

Battleship

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

Live Demo

Battleship

Getting Started

Requirements

  • GIT
  • NodeJS ^v21.0.0
  • NPM ^v10.2.0

Installation

  1. Clone the repository
git clone git@github.com:jesusgraterol/battleship-top.git
  1. Install the dependencies
npm install

Usage

  1. Run the Webpack Build in watch mode
npm run serve
  1. Open the ./dist/index.html file with your favorite browser.

Build Process

  1. Run the Webpack Build
npm run build

Deployment

  1. Push the new build to the gh-pages branch so it is deployed to Github Pages:
git subtree push --prefix dist origin gh-pages

Built With

  • HTML5
  • CSS3
  • JavaScript
  • Jest
  • Webpack

Running the Tests

# Unit Tests
npm run test:unit

# Integration Tests
npm run test:integration

# E2E Tests
N/A

@TODO

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

License

MIT

Acknowledgments

About

This application implements the popular game known as Battleship and it is the submission for The Odin Project: Battleship.

https://jesusgraterol.github.io/battleship-top/


Languages

Language:JavaScript 78.2%Language:CSS 18.7%Language:HTML 3.0%