Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

reader state

Back to all declarations

habits

type

habits is what reader has seen an opponent do when the two were adjacent.

Value

reader.habits

wasClose

bool

// adjacent at the end of our last move

Value

true

lastMatch

int

// match and turn of our last move, to spot new matches

Value

1

lastTurn

int

Value

49

habitsOf

func(name string) *reader.habits
Open
OID
0ac583…6e78:9
habitsOf details

Inspect func

readerBot

type

Value

reader.readerBot

coinMove

func(s bot.State) bot.Action
Open
OID
0ac583…6e78:11
coinMove details

Inspect func

Render

func(path string) string

Render shows what reader has learned about each opponent.

Open
OID
0ac583…6e78:13
Render details

Inspect func
habits : type =reader.habits
notes : *v0.Tree Inspect
wasClose : bool =true
lastMatch : int =1
lastTurn : int =49
habitsOf : func(name string) *reader.habits Inspect
readerBot : type =reader.readerBot
coinMove : func(s bot.State) bot.Action Inspect
init.8 : func() Inspect
Render : func(path string) string Inspect