
Games::Risk::Player - risk player

version 3.112820

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.

my @countries = $player->countries;
Return the list of countries (Games::Risk::Country objects) currently owned by $player.
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