Skip to content

Piervn/Battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleship

Simple console PvE game written in C++.

Rules

There are 10 ships:

  • One 4-masted
  • Two 3-masted
  • Three 2-masted
  • Four 1-masted

All ships are randomly placed on both boards. The only rule is that the ships cannot touch each other. Correct shot consists of a letter from a to j and a number from 1 to 10, e.g. a5 or g10. Input a shot with uppercase will cause an error. After each hit, player can continue shooting.

The same goes for computer. When player misses, computer starts shooting. Player wins when he shoots down all enemy ships.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Languages