Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Difficulty ¶
type Difficulty int
Difficulty defines the number of clues available in the Sudoku puzzle. The value corresponds to the number of blocks that are pre-filled.
const ( None Difficulty = 81 Kids Difficulty = 63 Easy Difficulty = 45 Medium Difficulty = 36 Hard Difficulty = 27 Insane Difficulty = 13 )
Available Difficulty values.
func From ¶ added in v0.0.2
func From(str string) Difficulty
From interprets the given difficulty in string form to the actual enum value.
func (Difficulty) BlocksFilled ¶
func (d Difficulty) BlocksFilled() int
BlocksFilled returns the # of blocks that need to be filled to qualify for that difficulty mode.
func (Difficulty) String ¶
func (d Difficulty) String() string
String returns a human-readable name for the Difficulty.
Click to show internal directories.
Click to hide internal directories.