1.0.4 • Published 4 years ago

@itspladd/battleship-engine v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

battleship-engine

A stand-alone engine for running Battleship-style games on a hexagonal game board. Currently lacking an interface; all interaction is done through tests.

🚧 Currently in development 🚧

👉 I'm building a 3D interface for this engine! 👈

Check it out at https://github.com/itspladd/react-3d-battleship!

Overview

This module exposes a GameEngine class and several objects representing constant values for the game. An instantiated GameEngine object can receive moves through its promise-based inputMove function. When the move has been fully validated and processed, the promise resolves with information about the move's success or failure and the entire current state of the game.

Install

npm install @itspladd/battleship-engine

1.0.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago