by: Fundy Android • 0
This app plays a mean game of battleships, which pits the user against the program, both of which try to sink the same fleet arrangement in the fewest number of steps.
The shared fleet layouts are drawn randomly from a hundred pre-selected arrangements.
In this mplementation, there are seven ships, none of which touch each other.
To play, the user first takes their turn and keeps shooting till the entire fleet is sunk. Then you switch to the enemy side and keep pressing the fire button until the fleet is sunk.
The app then compares score and decides the winner.