Battleship

The program creates a 10x10 grid of buttons that hide 5 ships. When you press a button, an ‘X’ reveals a hit and a ‘O’ reveals a miss. There is a carrier, a battleship, a cruiser, a submarine, and a destroyer that hide in the 10x10 grid.