grid

package
v0.0.0-...-eb763d7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int
const (
	UP Direction = iota
	RIGHT
	DOWN
	LEFT

	NONE
)

type Grid

type Grid struct {
	Data [4][4]int `json:"data"`
}

func (*Grid) Clone

func (g *Grid) Clone() *Grid

func (*Grid) Max

func (g *Grid) Max() int

func (*Grid) Move

func (g *Grid) Move(d Direction) bool

func (*Grid) VacantPoints

func (g *Grid) VacantPoints() []utils.Point

Jump to

Keyboard shortcuts

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