puzzle

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

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

Go to latest
Published: Dec 10, 2014 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Puzzle

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

Puzzle structure

func CreatePuzzle

func CreatePuzzle(width int, height int) *Puzzle

Constructor

func (*Puzzle) Height

func (p *Puzzle) Height() int

func (*Puzzle) IsSolved

func (p *Puzzle) IsSolved() bool

func (*Puzzle) Move

func (p *Puzzle) Move(input constants.SlidingDirection) bool

func (*Puzzle) Tiles

func (p *Puzzle) Tiles() [][]int

func (*Puzzle) Width

func (p *Puzzle) Width() int

Getters

Jump to

Keyboard shortcuts

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