noeldavies / battleships
battleships?
dev-master
2017-12-06 00:11 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: ~4
This package is auto-updated.
Last update: 2025-02-11 23:41:37 UTC
README
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 :/