NAME
Games::Nonogram::Line
DESCRIPTION
This is used internally to store status of the cells in a row/column.
METHODS
new
creates an object.
size
returns the length of the row/column.
value
returns the value of the cell of the given id.
on
turns on the cell(s) of the given id.
off
turns off the cell(s) of the given id.
clear
clears (undefines) the cell(s) of the given id.
is_done
returns true if all the cells in the line have turned on/off (i.e. defined).
is_dirty
returns true if some of the cells in the line have changed.
dirty_items
returns an array of the changed cells.
clone
creates a clone of the line object.
as_vec
returns a bitmap vector form of the line. You can pass another bitmap vector to initialize the object (for example, while brute-forcing).
as_string
returns a stringified form of the line.
AUTHOR
Kenichi Ishigaki, <ishigaki at cpan.org>
COPYRIGHT AND LICENSE
Copyright 2007 by Kenichi Ishigaki
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.