Games::Sequential

Sequential games framework with OO interface
Download

Games::Sequential Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Stig Brautaset
  • Publisher web site:
  • http://search.cpan.org/~stig/Games-AlphaBeta-0.4.6/lib/Games/AlphaBeta/Reversi.pm

Games::Sequential Tags


Games::Sequential Description

Sequential games framework with OO interface Games::Sequential is a Perl module with sequential games framework with OO interface.SYNOPSIS package My::GamePos; use base qw(Games::Sequential::Position); sub apply { ... } package main; use My::GamePos; use Games::Sequential; my $pos = My::GamePos->new; my $game = Games::Sequential->new($pos); $game->debug(1); $game->move($mv); $game->undo;Games::Sequential is a framework for producing sequential games. Among other things it keeps track of the sequence of moves, and provides an unlimited undo() mechanism. It also has methods to clone() or take a snapshot() of a game.Users must pass an object representing the initial state of the game as the first argument to new(). This object must provide the two methods copy() and apply(). You can use Games::Sequential::Position as a base class, in which case the copy() method will be provided for you. The apply() method must take a move and apply it to the current position, producing the next position in the game. Requirements: · Perl


Games::Sequential Related Software