Games::Risk::Player - risk player
version 3.112590
This module implements a risk player, with all its characteristics.
Player type (human, ai, etc.)
Player name.
Player color to be used in the gui.
The class of the artificial intelligence, if player is an AI.
The reference to the actual AI object, if player is an AI.
The cards (a Games::Risk::Deck object) currently owned by $player.
Games::Risk::Deck
$player
my @countries = $player->countries;
Return the list of countries (Games::Risk::Country objects) currently owned by $player.
Games::Risk::Country
my $greatness = $player->greatness;
Return an integer reflecting the greatness of $player. It will raise with the number of owned territories, as well as the number of armies.
Jerome Quelin
This software is Copyright (c) 2008 by Jerome Quelin.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Games::Risk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Risk
CPAN shell
perl -MCPAN -e shell install Games::Risk
For more information on module installation, please visit the detailed CPAN module installation guide.