Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.18 KB

README.md

File metadata and controls

28 lines (17 loc) · 1.18 KB

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 :/