day458

package
v0.0.0-...-36687a4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidRules

func IsValidRules(rules []string) bool

IsValidRules answers if the rules are consistent.

Types

type Direction

type Direction string

Direction represents the eight cardinal and intercardinal directions.

const (
	// N is North
	N Direction = "N"
	// NE is North-East
	NE Direction = "NE"
	// E is East
	E Direction = "E"
	// SE is South-East
	SE Direction = "SE"
	// S is South
	S Direction = "S"
	// SW is South-West
	SW Direction = "SW"
	// W is West
	W Direction = "W"
	// NW is North-West
	NW Direction = "NW"
)

type Position

type Position struct {
	X, Y int
}

Position represents a point in Euclidean geometry.

Jump to

Keyboard shortcuts

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