I You must write the game as a simple PHP web application.
You are expected to make your code elegant / beautiful and the best you can do; i.e. it’s not sufficient that it just works, please ensure separation of logic / object oriented abstraction.
Provide commentary to your code as necessary.
The Problem Implement a simple game of battleships [url removed, login to view](game) Please see example of this spec here [url removed, login to view]
You must create a simple web application to allow a single human player to play a one-sided game of battleships against the computer.
The program should create a 10x10 grid, and place a number of ships on the grid at random with the following sizes:
1 x Battleship (5 squares)
2 x Destroyers (4 sqquares) Ships can touch but they must not overlap.
The application should accept input from the user in the format “A5” to signify a square to target, and feedback to the user whether the shot was success, miss, and additionally report on the sinking of any vessels
. = no shot, - = miss, X = hit