smcunning / battleship

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Class: Ship - I1

smcunning opened this issue · comments

Class: Ship

  • name : shows the name of the ship type
  • length : shows the length of the ship
  • health : finds health of ship
  • sunk? : checks if health is == 0
  • hit : brings health down by 1 when user inputs computer's cell which includes S (ship)

--TESTS--

  • Create tests according to interaction pattern