![]() |
![]()
| ![]() |
![]()
NAMEGames::AlphaBeta::Position - base Position class for use with Games::AlphaBeta SYNOPSISpackage My::GamePos; use base qw(Games::AlphaBeta::Position); sub apply { ... } sub endpos { ... } # optional sub evaluate { ... } sub findmoves { ... } package main; my $pos = My::GamePos->new; my $game = Games::AlphaBeta->new($pos); DESCRIPTIONGames::AlphaBeta::Position is a base class for position-classes that can be used with Games::AlphaBeta. It inherits most of its methods from Games::Sequential::Position; make sure you read its documentation. This class is provided for convenience. You don't need this class in order to use Games::AlphaBeta. It is, however, also possible to make use of this class on its own. INHERITED METHODSThe following methods are inherited from Games::Sequential::Position: VIRTUAL METHODSModules inheriting this class must implement the following methods (in addition to apply() and anything else required by Games::Sequential::Position): evaluate() & findmoves().
METHODSThe following methods are provided by this class.
SEE ALSOThe author's website, describing this and other projects: <http://brautaset.org/projects/> AUTHORStig Brautaset, <stig@brautaset.org> COPYRIGHT AND LICENCECopyright (C) 2004 by Stig Brautaset This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.
|