Skip to content

This is the game of battleships. A player will place 5 of their ships on a 10 by 10 grid. The computer player will deploy five ships on the same grid. Once the game starts the player and computer take turns, trying to sink each other's ships by guessing the coordinates to attack. The game ends when either the player or computer has no ships left.

Notifications You must be signed in to change notification settings

jabrij93/Battle-Ships

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Battle-Ships

This is the game of battleships. A player will place 5 of their ships on a 10 by 10 grid. The computer player will deploy five ships on the same grid. Once the game starts the player and computer take turns, trying to sink each other's ships by guessing the coordinates to attack. The game ends when either the player or computer has no ships left.

Uses 2D arrays and the use of objects.

About

This is the game of battleships. A player will place 5 of their ships on a 10 by 10 grid. The computer player will deploy five ships on the same grid. Once the game starts the player and computer take turns, trying to sink each other's ships by guessing the coordinates to attack. The game ends when either the player or computer has no ships left.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages