Welcome to battleship-game 👋

Version Prerequisite Prerequisite Documentation Maintenance License: ISC Twitter: nychisback

Implement a simple game of battleships http://en.wikipedia.org/wiki/Battleship_(game)

Demo

Prerequisites

  • npm >=5.5.0
  • node ^12.17.0 || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x

Install

npm install

Usage

npm run start

Run tests

npm run test

Author

👤 Metehan Akbaba *

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

Todo

Todo

  • Create an app instance
  • Typescript | @swc/core | tsx
  • Esbuild
  • Eslint & Prettier
  • Create a builder own project
  • Dotenv support
    • Node build
    • Node dev
    • Browser build
    • Browser dev \w hot reloaded functionally
  • Init React for browser side
  • Configurable game-board instance
  • Create ships methods
    • Create
    • Shoot
    • Sunk ships
  • Check if a ship overlaps another ship in the grid.
  • Check if there are ships adjacent to this ship placement
  • Show each other's positions when the game is over
  • Re-match functionality
  • Better graphics

📝 License

Copyright © 2022 Metehan Akbaba.

This project is ISC licensed.