Games::Risk::AI::Hegemon - ai that tries to conquer the world
my $ai = Games::Risk::AI::Hegemon->new(\%params);
This artificial intelligence is optimized to conquer the world. It checks what countries are most valuable for it, optimizes attacks and moves for continent bonus and blocking other players.
This class implements (or inherits) all of those methods (further described in Games::Risk::AI):
Games::Risk::AI
attack()
attack_move()
description()
difficulty()
move_armies()
place_armies()
This AI is freely adapted from jRisk.
Games::Risk::AI, Games::Risk.
Jerome Quelin, <jquelin at cpan.org>
<jquelin at cpan.org>
Copyright (c) 2008 Jerome Quelin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU GPLv3+.
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.