Games::Risk - classical 'risk' board game
Risk is a strategic turn-based board game.
Players control armies,
with which they attempt to capture territories from other players.
The goal of the game is to control all the territories (
conquer the world) through the elimination of the other players.
Using area movement,
Risk ignores realistic limitations,
such as the vast size of the world,
and the logistics of long campaigns.
This distribution implements a graphical interface for this game.
Games::Risk itself tracks everything needed for a risk game.
It is also used as a heap for
Games::Risk::Controller POE session.
Start the application, with an initial batch of
@modules to build.
my @modules = Games::Risk->maps;
Return a list of module names under Games::Risk::Map namespace.
Create a new risk game. No params needed. Note: this class implements a singleton scheme.
The following accessors (acting as mutators, ie getters and setters) are available for
armies left to be placed.
Games::Risk::Map object of the game.
Put back all cards given to players to the deck.
Break all circular references in
$game, to reclaim all objects referenced.
Remove $player from the list of active players.
Return the next player to play, or undef if the turn is over. Of course, players that have lost will never be returned.
Games::Risk::Player objects of the current game. Note that some of those players may have already lost.
Return the list of active players (Games::Risk::Player objects).
Remove all players, and replace them by
Mark all players to be in "turn to do", effectively marking them as still in play. Typically called during initial army placing, or real game start.
@params) to all players.
@params) to one
This is a work in progress. While there are steady improvements, here's a rough list (with no order implied whatsoever) of what you can expect in the future for
However, the game is already totally playable by now: reinforcements, continent bonus, country cards, different artificial intelligences... Therefore, version 1.0.0 has been released with those basic requirements. Except new features soon!
Please report any bugs or feature requests to
bug-games-risk at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Games-Risk. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
I definitely recommend you to buy a
risk board game and play with friends, you'll have an exciting time - much more than with this poor electronic copy.
You can find more information on the classical
risk game on wikipedia at http://en.wikipedia.org/wiki/Risk_game.
You can find more information on this module at:
This software is Copyright (c) 2008 by Jerome Quelin.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007