day319

package
v0.0.0-...-d40efbb Latest Latest
Warning

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

Go to latest
Published: Mar 8, 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 Puzzle

type Puzzle [9]int

Puzzle represents and 8-puzzle in row-major form.

func EightPuzzle

func EightPuzzle(puzzle Puzzle) ([]Puzzle, error)

EightPuzzle solves an 8-puzzle or returns an error if unsolvable.

Jump to

Keyboard shortcuts

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