noeldavies/battleships

dev-master 2017-12-06 00:11 UTC

This package is auto-updated.

Last update: 2024-03-11 21:53:48 UTC


README

Latest Stable Version Total Downloads License

BattleShips

This package provides a convenient library for playing BattleShips. Be it simulations, live games or you're trying to create a scene from the film wargames!

Begin by installing this package through Composer. Edit your project's composer.json file to require noeldavies/battleships.

"require": {
    "noeldavies/battleships": "dev-master"
}

Next, update Composer from the Terminal:

composer update

Next, add the service provider. Open config/app.php and add a new item to the providers array.

NoelDavies\BattleShips\BattleShipsServiceProvider::class

Usage

This package is accessible via Laravel Facades so to use simply use one of the Facades "Coordinate", "Grid" and "Ship".

Contributing

Just fork it and send me a PR. Please don't break my tests :/