Skip to content

Closer to Minesweeper; includes recursive routine for finding 'battleships'.

Notifications You must be signed in to change notification settings

milescajus/battleship

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battle Ship Assignment

Implemented by Miles Prinzen for PROG220: C++ Programming.

Original task description as follows:

Your job is to create a battleship "solver". The code provided is to initialze and allocate a board and stub methods to place ships on that board. all ships are 1x1.

Your job is to implement an algorithm to search the board for ships in as few guesses as possible.

The guess returns 3 options:

  • Miss No ships adjacent to the guess
  • Near Miss No Ship at guess, but ship is in an adjacent square
  • Hit Ship is at guess

About

Closer to Minesweeper; includes recursive routine for finding 'battleships'.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 84.9%
  • C 11.3%
  • Makefile 3.8%