Games::Battleship::PlayerGames::Battleship::Player is a Battleship player class. | |
Download |
Games::Battleship::Player Ranking & Summary
Advertisement
- 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::Player Tags
Games::Battleship::Player Description
Games::Battleship::Player is a Battleship player class. Games::Battleship::Player is a Battleship player class.SYNOPSIS use Games::Battleship::Player; $aeryk = Games::Battleship::Player->new(name => 'Aeryk'); $gene = Games::Battleship::Player->new(name => 'Gene'); print 'Player 1: ', $aeryk->name, "n", 'Player 2: ', $gene->name, "n"; $aeryk->strike($gene, 0, 0); # Repeat and get a duplicate strike warning. $strike = $aeryk->strike($gene, 0, 0); print $aeryk->grid($gene), "nThat was a " . ( $strike == 1 ? 'hit!' : $strike == 0 ? 'miss.' : 'duplicate?' ), "n"; $craft_obj = $aeryk->craft($id);A Games::Battleship::Player object represents a Battleship player complete with fleet and game surface. Requirements: · Perl
Games::Battleship::Player Related Software