Games::Sudoku::OO::Board - Object oriented Sudoku solver


NAME

Games::Sudoku::OO::Board - Object oriented Sudoku solver

Back to Top


SYNOPSIS

  use Games::Sudoku::OO::Board;
  my $board = Sudoku::OO::Board->new();
  $board->importGrid($txt_grid);
  print $board->toStr;
  # Tell Row 1 to solve itself as much as it can
  $board->solveRow(1);
  print $board->toStr;
  # Solve the whole board
  $board->solveAll;
  print $board->toStr;

Back to Top


DESCRIPTION

Games::Sudoku::OO takes an object oriented approach to solving Sudoku, representing the column, row and square as derivatives of a base Set class, which encapsulates the solving rules. The Board class is also composed of cells (which know what set they are in) and is only responsible for loading and updating the cells and interacting with the users. The sets themselves do the solving.

Back to Top


USAGE

Back to Top


BUGS

- Doesn't solve all boards - Display of unsolved boards is a bit odd

Back to Top


SUPPORT

- Email me

Back to Top


AUTHOR

Michael Cope CPAN ID: COPE


cpan@copito.org
http://www.copito.org/perl

Back to Top


COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

Back to Top


SEE ALSO

Games::Sudoku::OO::Set Games::Sudoku::OO::Cell

Back to Top

 Games::Sudoku::OO::Board - Object oriented Sudoku solver