BattleShip
The BattleShip is an online game developed in Java.
...The game uses Server-Client structure, each user has a map where he needs to allocate his ships and one map where he will choose where to shoot to try to hit his enemy’s ships. The one who hit all opponent’s ships first, wins the game. The ships allocation can be manually or automatic (random position) and there is also a chat implemented where one user can talk to his opponent.
UPDATE:
Battleship v2.0 has now single player mode. The user can play against the computer.