chromatic > Games-PMM > Games::PMM

Download:
Games-PMM-0.10.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.10   Source  

NAME ^

Games::PMM - the base distribution of the Paper Maché Monsters Game

DESCRIPTION ^

Paper Maché Monsters is a monster-battling game where wind-up monsters battle each other in an arena. These monsters run through programmable command lists until a victor emerges.

USAGE ^

Setup

Play

Loop through the monsters, activating their command lists:

  for my $monster (@monsters)
  {
        while (my ($action, @arguments) = $monster->next_command())
        {
            my $command = $actions->can( 'action_' . $action );
                next unless $command;

                $actions->$command( $arena, $monster, @arguments );
        }
  }

Winning

That's up to you. "Last monster standing" is a good winning condition. Of course, some combinations of monsters may never reach each other. Another good option is running the game for a fixed number of rounds, declaring that the least-damaged monster wins.

Ties are acceptable.

AUTHOR ^

chromatic, chromatic@wgz.org

BUGS ^

No known bugs.

SEE ALSO ^

COPYRIGHT ^

Copyright (c) 2003, chromatic. All rights reserved. This module is distributed under the same terms as Perl itself, in the hope that it is useful but certainly under no guarantee.

syntax highlighting: