Games-Go-Sgf2Dg
view release on metacpan or search on metacpan
lib/Games/Go/Sgf2Dg/Diagram.pm view on Meta::CPAN
=back
=item 'label'
The intersection has been labeled. The value indicates the text of the
label.
=item 'overstones'
If this hash entry exists it means that one or more stones were overlayed
on the stone that is currently displayed on this intersection of the
B<Diagram>.
The hash value is a reference to an array of color/number pairs.
The colors and numbers were passed to the B<put> method which
decided to convert the stone into an overstone.
This is typically seen as notes to the side of the diagram saying
something like "black 33 was played at the marked white stone". In
this example. the information returned by B<get> describes 'the
sgf2mpost/sgf2mpost.c view on Meta::CPAN
* Place a "color" on the board at i,j, and remove
* any captured stones.
*/
void updateboard(int i, int j, int color)
{
int other = OTHER_COLOR(color);
assert(i >= 0 && i < board_size && j >= 0 && j < board_size);
if (p[i][j] != EMPTY) {
gprintf("Stone overlay problem at %m!\n", i, j);
gprintf("Try reducing the move range with -s and -e.\n");
abort();
}
p[i][j] = color;
if (1)
DEBUG("Update board : %m = %d\n", i,j, color);
if (i > 0 && p[i-1][j] == other)
( run in 0.793 second using v1.01-cache-2.11-cpan-49f99fa48dc )