sudoku

package
v0.0.0-...-5916bb9 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 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 Cell

type Cell struct {
	X   int
	Y   int
	Num int
}

type Cells

type Cells chan Cell

type Solver

type Solver struct {
	Board *Sudoku
	Cells Cells
}

func (*Solver) Solve

func (s *Solver) Solve() Sudoku

Solve solves the sudoku

func (*Solver) ValidNums

func (s *Solver) ValidNums(x, y int) []int

ValidNums returns the valid nums

func (*Solver) Write

func (s *Solver) Write(x, y, num int)

type Sudoku

type Sudoku [9][9]int

Sudoku represents a sudoku board

func (Sudoku) String

func (s Sudoku) String() string

Print prints the sudoku

Jump to

Keyboard shortcuts

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