/BattleShips

BattleShips game for desktop. Java.

Primary LanguageJava

BattleShips-game

BattleShips game for desktop. Java.

Game against computer. Graphics representation was made using Swing library. AI uses random number generator for attack.

The layout looks wierd, but all game logic works good.

Before you start the game, dialog window asks player if he wants to set ship manual or random. During manual ship setting, player's actions to put ship into filled cell, or besides the board, are blocked. After the game, dialog window asks if player wants to play again.