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.

v4 state

Back to all declarations

MaxName

untyped bigint

Value

(16 <untyped> bigint)

check

func(name string, profile string) string

check returns why a bot can't be saved, or "".

Open
OID
0ae71e…12b2:6
check details

Inspect func

Check

func(name string, profile string) string

Check reports whether a bot can be saved: "ok" or the reason it is refused.

Open
OID
0ae71e…12b2:8
Check details

Inspect func

Save

func(name string, profile string)

Save stores the caller's bot, replacing the one they had.

Open
OID
0ae71e…12b2:9
Save details

Inspect func

Remove

func()

Remove deletes the caller's bot.

Open
OID
0ae71e…12b2:10
Remove details

Inspect func

record

func(addr string) (string, string, bool)
Open
OID
0ae71e…12b2:11
record details

Inspect func

Profile

func(addr string) string

Profile returns an address's bot profile, or "" if it has none.

Open
OID
0ae71e…12b2:12
Profile details

Inspect func

Count

func() int

Count is how many players have a bot.

Open
OID
0ae71e…12b2:13
Count details

Inspect func

botJSON

func(addr string, name string, profile string) string
Open
OID
0ae71e…12b2:14
botJSON details

Inspect func

Get

func(addr string) string

Get describes an address's bot as JSON, or "null".

Open
OID
0ae71e…12b2:15
Get details

Inspect func

List

func(skip int, n int) string

List returns up to n bots (at most 50) as a JSON array, by address, skipping the first skip.

Open
OID
0ae71e…12b2:16
List details

Inspect func

Versus

func(owner string, seed int, class int, inputs string) string

Versus replays a run (your inputs, as class) against someone's bot and returns "yourGold-botGold". Use it as a read to check a run before telling anyone about it.

Open
OID
0ae71e…12b2:17
Versus details

Inspect func

Describe

func(profile string) []string

Describe says what a profile does, one plain line per trait.

Open
OID
0ae71e…12b2:23
Describe details

Inspect func

Render

func(path string) string

Render lists the bots, or shows one at "bot/\<address>".

Open
OID
0ae71e…12b2:24
Render details

Inspect func
MaxName : untyped bigint =(16 <untyped> bigint)
bots : *v0.Tree Inspect
check : func(name string, profile string) string Inspect
Check : func(name string, profile string) string Inspect
Save : func(name string, profile string) Inspect
Remove : func() Inspect
record : func(addr string) (string, string, bool) Inspect
Profile : func(addr string) string Inspect
Count : func() int Inspect
botJSON : func(addr string, name string, profile string) string Inspect
Get : func(addr string) string Inspect
List : func(skip int, n int) string Inspect
Versus : func(owner string, seed int, class int, inputs string) string Inspect
classNames : [5]string Inspect
short : func(addr string) string Inspect
pct : func(v int) string Inspect
Describe : func(profile string) []string Inspect
Render : func(path string) string Inspect