sudoku

package
v0.0.0-...-5f64281 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sudoku

type Sudoku struct {
	// contains filtered or unexported fields
}

Sudoku is a sudoku puzzle struct

func NewSudoku

func NewSudoku(str string) (s Sudoku)

NewSudoku creates new sudoku puzzle

func (*Sudoku) FirstThree

func (s *Sudoku) FirstThree() int

FirstThree returns three digit number in first row of first block

func (*Sudoku) Solve

func (s *Sudoku) Solve()

Solve solves the puzzle

func (*Sudoku) Solved

func (s *Sudoku) Solved() bool

Solved returns if sudoku had been solved

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL