/Battleships

Implementation a simple game of battleships http://en.wikipedia.org/wiki/Battleship_(game) which allow a single human player to play a one-sided game of battleships against the computer.

Primary LanguagePHP

Laravel Battleship App

Implementation a simple game of battleships http://en.wikipedia.org/wiki/Battleship_(game) which allow a single human player to play a one-sided game of battleships against the computer.

This project was created with Laravel 7, Bootstrap 4, JQuery, Blade Template Engine and AJAX.

Screenshot1

Screenshot2

Below you will find some information about this project

How to start:

1.Clone this repository: git clone https://github.com/DimovDev/Battleships.git

2.Install all dependencies: composer install

3.Start application: php artisan serve

4.Open in your browser http://localhost:8000/

5.Enjoy the game

How to play:

To start press the “Play button”. There you will see a screen with squares.Press on any of the squares to find ships in the water. After every shot there will be information whether you missed or hit a ship. If you have difficulties guessing the position of the ships or just want to test it faster you can press the “Show” button, which will display the position of the ships in a grid. To restart or start a new game press the “New Game” button.

Live demo can be found here https://dimovdev.ml

License

The Laravel framework is open-sourced software licensed under the MIT license.