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


Games-Sudoku-OO documentation  | view source Contained in the Games-Sudoku-OO distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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;







DESCRIPTION

Top

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.

USAGE

Top

BUGS

Top

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

SUPPORT

Top

- Email me

AUTHOR

Top

Michael Cope CPAN ID: COPE

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

COPYRIGHT

Top

SEE ALSO

Top

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


Games-Sudoku-OO documentation  | view source Contained in the Games-Sudoku-OO distribution.