Module
Sudoku
- Package
- purescript-sudoku
- Repository
- sanrokugomaato/purescript-sudoku
This is the main module of Sudoku. It provides a set of functions to generate, manipulate or solve a Sudoku game.
#emptyBoard Source
emptyBoard :: Board (Maybe Int)
The emptyBoard
function creates an empty board filled with Nothing
.
#sectionContains Source
sectionContains :: forall a. Section -> Cell a -> Boolean
The sectionContains
function tells if a section contains a cell.
#sectionCells Source
sectionCells :: forall a. Section -> Board a -> Array (Cell a)
The sectionCells
function retrieves an array of cells which belong to a
specific section on a board.
#replaceValue Source
replaceValue :: forall a. Row -> Col -> a -> Board a -> Board a
The replaceValue
function replaces a value at a cell at a row/column pair
on a board.
#generateGame Source
generateGame :: forall e. Difficulty -> Eff (random :: RANDOM | e) Game
The generateGame
function generates a random Sudoku game with a minimum
difficulty.
- Modules
- Sudoku
- Sudoku.
Types - Sudoku.
Util