flyweight

package
v0.0.0-...-e90a610 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type ChessBoard

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

func NewChessBoard

func NewChessBoard() *ChessBoard

func (*ChessBoard) Move

func (c *ChessBoard) Move(id, x, y int)

type ChessPiece

type ChessPiece struct {
	Unit *ChessPieceUnit
	X    int
	Y    int
}

type ChessPieceUnit

type ChessPieceUnit struct {
	ID    uint
	Name  string
	Color string
}

Jump to

Keyboard shortcuts

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