Documentation ¶
Index ¶
- Constants
- Variables
- func CanMove() bool
- func CharAt(a, b int) rune
- func GetPlayerPosition() (int, int)
- func IsValid(a, b int) bool
- func WriteAt(a, b int, curChar rune)
- func WriteAtWithColor(a, b int, curChar rune, color int)
- type Avatar
- func (t *Avatar) MoveDown() bool
- func (t *Avatar) MoveLeft() bool
- func (t *Avatar) MoveRight() bool
- func (t *Avatar) MoveTo(a, b int) bool
- func (t *Avatar) MoveUp() bool
- func (t *Avatar) ParseToBeginning() bool
- func (t *Avatar) ParseToDowning() bool
- func (t *Avatar) ParseToEnd() bool
- func (t *Avatar) ParseToUpping() bool
- func (t *Avatar) ParseWordBackward() bool
- func (t *Avatar) ParseWordEnd() bool
- func (t *Avatar) ParseWordForward() bool
- type Cell
- type Ghost
- type Maze
Constants ¶
View Source
const ( Map0 = `` /* 399-byte string literal not displayed */ Map1 = `` /* 359-byte string literal not displayed */ Map2 = `` /* 195-byte string literal not displayed */ Map3 = `` /* 539-byte string literal not displayed */ Map4 = `` /* 1159-byte string literal not displayed */ Map5 = `` /* 390-byte string literal not displayed */ Map6 = `` /* 791-byte string literal not displayed */ Map7 = `` /* 272-byte string literal not displayed */ Map8 = `` /* 1103-byte string literal not displayed */ Map9 = `` /* 151-byte string literal not displayed */ )
Variables ¶
Functions ¶
func GetPlayerPosition ¶
func WriteAtWithColor ¶
Types ¶
type Avatar ¶
type Avatar struct { X int Y int LetterUnder rune ColorUnder int IsPlayer bool Points int Portrait rune Lives int64 Color int }
func (*Avatar) ParseToBeginning ¶ added in v0.0.3
ParseToBeginning for 0
func (*Avatar) ParseToDowning ¶ added in v0.0.4
func (*Avatar) ParseToUpping ¶ added in v0.0.4
func (*Avatar) ParseWordBackward ¶ added in v0.0.3
ParseWordBackward for b
func (*Avatar) ParseWordEnd ¶ added in v0.0.3
ParseWordEnd for e
func (*Avatar) ParseWordForward ¶ added in v0.0.3
ParseWordForward for w
type Ghost ¶
func SpawnGhost ¶
func SpawnGhost() *Ghost
Click to show internal directories.
Click to hide internal directories.