MaxName
untyped bigintValue
(16 <untyped> bigint)
bots
*v0.Tree// address -> "name/profile"
- OID
- 04e993…6bca:4
bots details
check
func(name string, profile string) stringcheck returns why a bot can't be saved, or "".
- OID
- 04e993…6bca:6
check details
Check
func(name string, profile string) stringCheck reports whether a bot can be saved: "ok" or the reason it is refused.
- OID
- 04e993…6bca:8
Check details
Save
func(name string, profile string)Save stores the caller's bot, replacing the one they had.
- OID
- 04e993…6bca:9
Save details
Remove
func()Remove deletes the caller's bot.
- OID
- 04e993…6bca:10
Remove details
record
func(addr string) (string, string, bool)- OID
- 04e993…6bca:11
record details
Profile
func(addr string) stringProfile returns an address's bot profile, or "" if it has none.
- OID
- 04e993…6bca:12
Profile details
Count
func() intCount is how many players have a bot.
- OID
- 04e993…6bca:13
Count details
botJSON
func(addr string, name string, profile string) string- OID
- 04e993…6bca:14
botJSON details
Get
func(addr string) stringGet describes an address's bot as JSON, or "null".
- OID
- 04e993…6bca:15
Get details
List
func(skip int, n int) stringList returns up to n bots (at most 50) as a JSON array, by address, skipping the first skip.
- OID
- 04e993…6bca:16
List details
Versus
func(owner string, seed int, class int, inputs string) stringVersus 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.
- OID
- 04e993…6bca:17
Versus details
classNames
[5]string- OID
- 04e993…6bca:19
classNames details
short
func(addr string) string- OID
- 04e993…6bca:20
short details
pct
func(v int) string- OID
- 04e993…6bca:22
pct details
Describe
func(profile string) []stringDescribe says what a profile does, one plain line per trait.
- OID
- 04e993…6bca:23
Describe details
Render
func(path string) stringRender lists the bots, or shows one at "bot/\<address>".
- OID
- 04e993…6bca:24