Skip to content

Battleship is a strategy type guessing game for two players. It is played on ruled boards on which each player's fleet of warships are marked. The locations of the fleets are concealed from the other player. Players alternate turns calling "shots" at the other player's ships, and the purpose of the game is to destroy the opposing player's fleet.

Notifications You must be signed in to change notification settings

Yummikko/Java-Battleship-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleship-game

Battleship is a strategy type guessing game for two players. It is played on ruled boards on which each player's fleet of warships are marked. The locations of the fleets are concealed from the other player. Players alternate turns calling "shots" at the other player's ships, and the purpose of the game is to destroy the opposing player's fleet.

TECHNOLOGIES

  • JAVA

GAME RULES

Game modes

  • The player has a choice of 3 game modes: Player vs Player, Player vs AI, AI vs AI.

Board

  • Players can choose a board size between 10 and 20.

Ships

  • Each player has 5 ships of different lengths, each ship must be placed on the board.

Placement methods

  • Each player can place their ships manually or automatically.

Placement rules

  • Each ship must be placed horizontally or vertically across board spaces. Ships cannot touch each other or overlap.

Shooting

  • The player shoots by selecting the square coordinates. After a shot, the square's status updates to M if the player missed, or to H if the player hit the opponent's ship.

Winner

  • The first player to destroy enemy ships wins.

USAGE

START

image (click enter to contiune)

SETTINGS

image

MANUAL SHIP PLACEMENT

image

SHOOTINH PHASE

image

END GAME

image

About

Battleship is a strategy type guessing game for two players. It is played on ruled boards on which each player's fleet of warships are marked. The locations of the fleets are concealed from the other player. Players alternate turns calling "shots" at the other player's ships, and the purpose of the game is to destroy the opposing player's fleet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages