tile

package
v0.0.0-...-48e53a6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASE_WIDTH  int     = 1000
	BASE_HEIGHT int     = 1000
	THICKNESS   float64 = 25
)

noinspection GoSnakeCaseUsage

Variables

This section is empty.

Functions

This section is empty.

Types

type Tile

type Tile struct {
	Value    TileType
	Active   bool
	Winning  bool
	Position position.Position
	Enabled  bool
}

func (*Tile) Clone

func (t *Tile) Clone() *Tile

func (*Tile) Equals

func (t *Tile) Equals(c *Tile) bool

func (*Tile) GetImage

func (t *Tile) GetImage() *ebiten.Image

type TileType

type TileType uint8
const (
	EMPTY TileType = 0
	X     TileType = 1
	O     TileType = 2
)

func (TileType) Opponent

func (tt TileType) Opponent() TileType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳