puzzle

package
v0.0.0-...-d7605a5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Len = 9

Variables

This section is empty.

Functions

func IsValid

func IsValid(p Puzzle, n Place, x, y int) bool

func Print

func Print(p Puzzle)

Types

type Place

type Place byte
const MaxValue Place = Place(Len)
const Unresolved Place = 0

type Puzzle

type Puzzle [][]Place

TODO: It might be strange to use 'uint8' but let's try it since it uses less memory.

func Parse

func Parse(input []string) (Puzzle, error)

func Solve

func Solve(p Puzzle) (Puzzle, bool)

Jump to

Keyboard shortcuts

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