Module sudokugen::board

source ·
Expand description

The Board module contains representations of a sudoku Board as well as the representation of a cell location inside a board CellLoc.

Usually you’d use the Board structure directly to create a board using the [new] method or by parsing it from a string. You might also use the CellLoc structure to reference a location in the board, but the [cell_at] method of the board instance is more convenient to address cells of a specific board.

Structs§

  • Represents a sudoku board.
  • Error returned when a base_size: usize cannot be converted to a board size, currently only 2, 3, and 4 can be converted back to a board size.
  • Represents a cell location in the board.
  • Error returned when the representation of the board cannot be parsed successfully.

Enums§

  • Represents the size of the board that sudukogen can work with. Currently only 4x4, 9x9, and 16x16 boards are allowed.