Commits

Show all
Author Commit Message Labels Comments Date
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Create _new_coords and convert to it. This wraps the Games::Nurikabe::Solver::Coords constructor.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Add an item to the TODO.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Renamed _to_pair as to_aref() and made it an API function.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Return the base_coords param as a Coords object.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Convert _cells_loop and _calc_vicinity to ::Coords.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
More conversion to ::Coords.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
More conversion to ::Coords.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
More switch to Coords->new.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Convert more to ::Coords. This time the Island BrFS scan.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
More conversion to ::Coords.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
More conversion to the Coords object.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Convert the _vicinity_loop to pass a coords object to the callback.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Start converting to Games/Nurikabe/Solver/Coords.pm . This is a coordinates object instead of the current [$y,$x] array ref.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Add an item to the TODO.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Add the TODO.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Moved _vicinity_loop to ::Board instead of ::Cell. This got rid of a parameter and allows for cleaner code and less Law of Demeter violation.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Implement _solve_using_expand_black_regions . We had to refactor some stuff and fix a test script that was broken due to this change.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Add a generated file to the svn:ignore
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Add the _solve_using_fully_expand_island move.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Fixed the GUI.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Fix the export of the $NK_UNKNOWN/etc. constants. It was broken by the fact that Class::Accessor started including an import method. This time we fixed it by separating all the constants into their own module and making use of it instead of having ::Cell double serve as such.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Added the 5*5 board.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Made the width/height of the Nurikabe board configurable.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Added the _found_totals() functionality.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Added more tests.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
More tests.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Added the _expected_totals() functionality.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Removed a redundant use statement.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Added the _solve_using wrapper for the _solve_using methods. This is so we won't have a $self->_flush_moves() in each one, but only in one place.
shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b
Fixed a bug in which undef items were enqueued, which caused unreachable state.
  1. Prev
  2. Next