hsudoku-0.1.0.1: Sudoku game with a GTK3 interface

Copyright(c) Marcel Moosbrugger 2017
LicenseMIT
Safe HaskellSafe
LanguageHaskell2010

Sudoku.Type

Description

Defines the data types and constructors regarding sudokus.

Synopsis

Documentation

data Sudoku Source #

The data type representing a single sudoku board.

Instances

boardsize :: Int Source #

The side-length of the sudoku.

boxsize :: Int Source #

The side-length of boxes in the sudokus.

cellvals :: [Char] Source #

The symbols which can be inserted into sudokus.

blankval :: Char Source #

The symbol representing an empty field.

fromString :: String -> Maybe Sudoku Source #

Creates a sudoku from a valid string.

toString :: Sudoku -> String Source #

Returns the string representation of a sudoku.