NAME

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

SYNOPSIS

use Chess::Rep::Coverage::Imager;

my $g = Chess::Rep::Coverage::Imager->new();
$g->write('board', 'png');

DESCRIPTION

This module exposes the "potential energy" of a chess ply by writing an Imager grapphic of the board positions, pieces and their "attack or protection status."

METHODS

new()

Return a new Chess::Coverage::Imager object.

write()

$g->write('my-board', 'png');

board()

$board = $g->board();

Return an Imager board layout with threats, protections and move statuses indicated by concentric colored circles and squares.

For example, the FEN sequence at the link under "SEE ALSO" graphically renders as:

white noise example

white noise example

white noise example

white noise example

SEE ALSO

* The code in the t/ directory.

* Chess::Rep::Coverage

* Imager

* http://en.wikipedia.org/wiki/Forsyth-Edwards_Notation