NAME

Chess::Rep::Coverage - Expose chess ply potential energy

SYNOPSIS

use Chess::Rep::Coverage;
$g = Chess::Rep::Coverage->new;
$c = $g->covers;
# ...

DESCRTIPTION

This module exposes the "potential energy" of a chess ply by returning a hash reference of the board positions and their "attack status", based on the occupying piece.

METHODS

new()

Subclass Chess::Rep.

covers()

Return a data structure, keyed on board index or position (a "field"), with:

protects => [squares occupied by protected allies]
attacks  => [squares occupied by attacted opponents]

TO DO

Make additional methods to produce coverage images and animations.

SEE ALSO

Chess::Rep

AUTHOR

Gene Boggs <gene@cpan.org>

COPYRIGHT

Copyright 2007-2010, Gene Boggs

This code is licensed under the same terms as Perl itself.