pattern

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names() []string

Names returns the names of all available patterns.

Types

type Pattern

type Pattern [9][9]int

Pattern defines a unique way of making a Sudoku puzzle.

func Get

func Get(name string) *Pattern

Get returns the Pattern matching the given name.

func (Pattern) IsEnabled

func (p Pattern) IsEnabled(row, col int) bool

IsEnabled returns true if the specified block is part of the pattern.

Jump to

Keyboard shortcuts

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