![]() |
![]()
| ![]() |
![]()
NAMEGames::AlphaBeta::Reversi - Reversi position class for use with Games::AlphaBeta SYNOPSISpackage My::Reversi; use base qw(Games::AlphaBeta::Reversi); # implement drawing routine sub draw { ... } package main; use My::Reversi; use Games::AlphaBeta; my ($p, $g); $p = My::Reversi->new; $g = Games::AlphaBeta->new($p); while ($p = $g->abmove) { $p->draw; } DESCRIPTIONThis module implements a position-object suitable for use with Games::AlphaBeta. It inherits from the Games::AlphaBeta::Position base class, so be sure to read its documentation. The methods implemented there will not be described here. METHODS
BUGSThe findmoves() method is too slow. This method is critical to performance when running under Games::AlphaBeta, as more than 60% of the execution time is spent there (when searching to ply 3). Both the evaluate() and endpos() routines use findmoves() internally, so by speeding this routine up we could gain a lot of speed. 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.
|