Games::Battleship

Games::Battleship - "You sunk my battleship!"
Download

Games::Battleship Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Gene Boggs
  • Publisher web site:
  • http://search.cpan.org/~gene/Lingua-TokenParse-0.1601/lib/Lingua/TokenParse.pm

Games::Battleship Tags


Games::Battleship Description

Games::Battleship - "You sunk my battleship!" Games::Battleship - "You sunk my battleship!"SYNOPSIS use Games::Battleship; $g = Games::Battleship->new(qw( Gene Aeryk )); $g->add_player('Stephanie'); $winner = $g->play(); print $winner->name(), " wins!n"; @player_objects = @{ $g->players }; $player_obj = $g->player('Professor Snape');A Games::Battleship object represents a battleship game between players. Each has a fleet of vessles and operates with a pair of playing grids One is for their own fleet and one for where the enemy has been seen.Everything is an object with default but mutable attributes. This way games can have two or more players each with a single fleet of custom vessles. These vessles are pretty simple and standard right now...A game can be played with the handy play() method or for finer control, use individual methods of the Games::Battleship::* modules. See the distribution test script for working code examples. Requirements: · Perl


Games::Battleship Related Software