strategy

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

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

Go to latest
Published: Sep 5, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SnakeStrategy

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

Implements matrix.Strategy interface

func NewSnake

func NewSnake(size int) *SnakeStrategy

NewSnake get a pointer to the snake strategy

func (SnakeStrategy) ConnectSquares

func (s SnakeStrategy) ConnectSquares(m matrix.Matrix) [][]*point.Point

Order squares inside a matrix

func (SnakeStrategy) OrderPoints

func (s SnakeStrategy) OrderPoints(sq square.Square)

Order points inside a square

Jump to

Keyboard shortcuts

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