Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Games::Battleship 0.05

    Download button

    No screenshots available
    Downloads: 384  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Gene Boggs | More programs
    Perl Artistic License / FREE
    December 28th, 2006, 06:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    battleship game | battleship fleet | Perl module | Games::Battleship | battleship | game

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM