Implementation for popular game battleship. Each player has 10 ships located on the 10x10 board. Objective: to sink all ships before your opponent does. The game has two modes: player vs console and player vs player.
Each player place his ships on the board in Placement Mode. After that, each player has one shot on the enemy board. If it hits the target, player will be awarded with additional shot. If shot miss, player turn will end. The second player (or console) will then do his moves. The winner is the player, who first destroy 10th enemy ship.