Changes for version 0.03

  • Find the least whole number that is not used as a player number.
  • Update and fix documentation.
  • In the Battleship.pm _init() loop, next if not player_, rather than only if "type".
  • Added an id attribute to creation of a new player.
  • Remove the 10 player limit by just looking at a player id attribute.
  • Whoops. Added <= 0 to the life decrement on hit condition.

Modules

"You sunk my battleship!"
A Battleship craft class
A Battleship grid class
A Battleship player class