Algorithm: Battleship Day 1

Preparing for the Battleship program

Play the game agains the computer here:
(You need a browser that supports the game, Firefox)

With a friend:

Play Battleship with a purpose:

Can you group the locations of the ships in categories?
The ships could be:

  • Vertical or Horizontal
  • In a corner
  • By the edges
  • In the middle

If you found a ship at a location, what would be your next move based on the grouping mentioned above?

If you want to include images, look at the next chapter from Invent with Python