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.

v0 state

Back to all declarations

moveWindow

untyped bigint

// seconds a player has for each move

Value

(86400 <untyped> bigint)

openWindow

untyped bigint

// seconds an open challenge stays on the board

Value

(604800 <untyped> bigint)

maxBox

untyped bigint

// bytes

Value

(104 <untyped> bigint)

maxPage

untyped bigint

Value

(50 <untyped> bigint)

maxCleared

untyped bigint

// expired challenges one Challenge deletes at most

Value

(8 <untyped> bigint)

idDigits

untyped bigint

Value

(10 <untyped> bigint)

phaseOpen

untyped string

Value

"open"

phaseReveal

untyped string

Value

"reveal"

phasePlay

untyped string

Value

"play"

phaseEnded

untyped string

Value

"ended"

phaseExpired

untyped string

// reported for an open match past its expiry, never stored

Value

"expired"

lastID

int

Value

3

OpenChallenge

type

OpenChallenge is an open challenge as the board lists it.

Value

v0.OpenChallenge

Challenge

func(clan string, deckSeal string, planSeal string, box string, opponent .uverse.address) string

Challenge posts a challenge for clan with the seals of the challenger's deck and round-1 plan, the box holding both, and an opponent who alone may accept, or none. It returns the new match's id. It first deletes up to 8 expired challenges, whoever posted them.

Open
OID
030725…5ac0:4
Challenge details

Inspect func

Open

func(offset int, limit int) []v0.OpenChallenge

Open lists open, unexpired challenges, newest first: limit of them after skipping offset. limit is 1 to 50.

Open
OID
030725…5ac0:6
Open details

Inspect func

forget

func(id int, challenger .uverse.address)

forget deletes open challenge id and its place among its challenger's matches. Its entry on the open list is the caller's to remove.

Open
OID
030725…5ac0:7
forget details

Inspect func

checkPage

func(offset int, limit int)
Open
OID
030725…5ac0:8
checkPage details

Inspect func

boxBytes

func(text string) string

boxBytes decodes a box argument: the standard base64 of 1 to maxBox bytes, in the one form that encodes them, so Match returns every box exactly as it was sent.

Open
OID
030725…5ac0:9
boxBytes details

Inspect func

canonical

func(a .uverse.address) bool

canonical accepts a valid address in the lowercase form callers carry. bech32 also allows uppercase, which would never equal a caller's address.

Open
OID
030725…5ac0:10
canonical details

Inspect func

validSeal

func(s string) bool

validSeal accepts a sha256 sum in lowercase hex.

Open
OID
030725…5ac0:11
validSeal details

Inspect func

chunkSize

untyped bigint

// match ids per chunk

Value

(64 <untyped> bigint)

addressSize

untyped bigint

// bytes in an address's text

Value

(40 <untyped> bigint)

sealSize

untyped bigint

// bytes in a raw sha256 seal

Value

(32 <untyped> bigint)

lockSize

untyped bigint

Value

(48 <untyped> bigint)

openSize

untyped bigint

Value

(8 <untyped> bigint)

planBits

untyped bigint

// bits per round in a side's plans: 2 for the length, 6 per card

Value

(20 <untyped> bigint)

cardBits

untyped bigint

Value

(6 <untyped> bigint)

maxPlanLen

untyped bigint

Value

(3 <untyped> bigint)

maxRound

untyped bigint

Value

(3 <untyped> bigint)

maxPool

untyped bigint

// cards in a clan's pool; a deck is one bit per pool card

Value

(16 <untyped> bigint)

bitsAt

func(v uint64, at uint, width uint) uint64

bitsAt returns the width bits of v starting at bit at.

Open
OID
030725…5ac0:12
bitsAt details

Inspect func

withBits

func(v uint64, at uint, width uint, x uint64) uint64

withBits returns v with the width bits at bit at replaced by x.

Open
OID
030725…5ac0:14
withBits details

Inspect func

planAt

func(plans uint64, round int) v0.Plan

planAt returns the plan made for round, or nil when it is not yet made.

Open
OID
030725…5ac0:16
planAt details

Inspect func

withPlan

func(plans uint64, round int, p v0.Plan) uint64

withPlan returns plans with round's plan set to p.

Open
OID
030725…5ac0:17
withPlan details

Inspect func

plansMade

func(plans uint64) int

plansMade counts the rounds from the first that have a plan.

Open
OID
030725…5ac0:18
plansMade details

Inspect func

planOffset

func(round int) uint
Open
OID
030725…5ac0:19
planOffset details

Inspect func

deckOnPool

func(pool uint64, deck uint64) uint16

deckOnPool returns deck, a set of card ids, as one bit per card of pool in id order.

Open
OID
030725…5ac0:20
deckOnPool details

Inspect func

deckFromPool

func(pool uint64, bits uint16) uint64

deckFromPool is the inverse of deckOnPool.

Open
OID
030725…5ac0:21
deckFromPool details

Inspect func

writer

type

Value

v0.writer

reader

type

Value

v0.reader

record

type

record is a match as the arena works on it, decoded from its stored bytes. clans holds each side's index in the ruleset plus one, 0 for none; decks and plans are the engine's card sets and the packed plans of withPlan; hp is the HP after each round, per side; carried holds only the Vulnerable and Strength left after the last resolved round. deckSeal and seal are 64 hex characters; box is the raw bytes, up to maxBox, stored with a 2-byte length.

Value

v0.record

flagOpponent

untyped bigint

Value

(1 <untyped> bigint)

flagDeckSeal

untyped bigint

Value

(2 <untyped> bigint)

flagSealBox

untyped bigint

Value

(4 <untyped> bigint)

phaseNames

[]string (len=4)

The value of each name is its index; 0 of result and reason is none.

Open
OID
030725…5ac0:24
phaseNames details (len=4)

+4 more Inspect slice

resultNames

[]string (len=4)

The value of each name is its index; 0 of result and reason is none.

Open
OID
030725…5ac0:26
resultNames details (len=4)

+4 more Inspect slice

reasonNames

[]string (len=5)

The value of each name is its index; 0 of result and reason is none.

Open
OID
030725…5ac0:28
reasonNames details (len=5)

+5 more Inspect slice

nameIndex

func(names []string, s string, what string) uint64
Open
OID
030725…5ac0:29
nameIndex details

Inspect func

nameAt

func(names []string, i uint64, what string) string
Open
OID
030725…5ac0:30
nameAt details

Inspect func

encodeMatch

func(rules *v0.Ruleset, m v0.record) string
Open
OID
030725…5ac0:31
encodeMatch details

Inspect func

decodeMatch

func(rules *v0.Ruleset, b string) v0.record
Open
OID
030725…5ac0:32
decodeMatch details

Inspect func

clanNibble

func(rules *v0.Ruleset, clan int) uint64

clanNibble is a clan's stored form, its ruleset index plus one, checked against rules.

Open
OID
030725…5ac0:33
clanNibble details

Inspect func

poolOf

func(rules *v0.Ruleset, clan int) uint64

poolOf returns the card pool of clan, 0 for no clan.

Open
OID
030725…5ac0:34
poolOf details

Inspect func

chunkRecord

func(chunk string, slot int) string

chunkRecord returns the record in slot, or "" when it is removed or beyond the chunk.

Open
OID
030725…5ac0:35
chunkRecord details

Inspect func

withChunkRecord

func(chunk string, slot int, rec string) string

withChunkRecord returns chunk with slot's record set to rec, adding empty slots up to it.

Open
OID
030725…5ac0:36
withChunkRecord details

Inspect func

playerRecord

type

playerRecord is what the arena keeps per player: the ids of their matches, oldest first, and the session locks that bind a session key to one match.

Value

v0.playerRecord

sessionLock

type

Value

v0.sessionLock

decodePlayer

func(s string) v0.playerRecord

decodePlayer reads a player's bytes: a 2-byte id count, the ids at 4 bytes each, then the locks. ceiling: joining a match or changing a lock rewrites all of a player's ids, up to 65,535, so gas grows with their matches; an avl index of ids per player if some play thousands.

Open
OID
030725…5ac0:37
decodePlayer details

Inspect func

encodePlayer

func(p v0.playerRecord) string
Open
OID
030725…5ac0:38
encodePlayer details

Inspect func

openEntry

type

openEntry is a challenge on the board: its match id and expiry in Unix seconds.

Value

v0.openEntry

openEntries

func(s string) []v0.openEntry
Open
OID
030725…5ac0:39
openEntries details

Inspect func

encodeOpen

func(entries []v0.openEntry) string
Open
OID
030725…5ac0:40
encodeOpen details

Inspect func

guard

func(fromUser bool, caller .uverse.address, m v0.record, id int)

guard binds the session that signed the transaction to match id, held in m, saving the caller's record only when its locks change.

Open
OID
030725…5ac0:41
guard details

Inspect func

join

func(fromUser bool, caller .uverse.address, id int)

join adds match id to the caller's record and binds the session that signed the transaction to it, refused when that session is bound to a match already.

Open
OID
030725…5ac0:43
join details

Inspect func

signingSession

func(fromUser bool) (.uverse.address, int64, bool)

signingSession returns the signing session key and its expiry when fromUser: a session signs the whole transaction, so a call through another realm is left unchecked.

Open
OID
030725…5ac0:44
signingSession details

Inspect func

lockSession

func(locks []v0.sessionLock, session .uverse.address, expires int64, id int, opening bool, now int64) (kept []v0.sessionLock, changed bool, refusal string)

lockSession binds session to match id, refused when bound to another, or any when opening. It drops expired locks and any lock its key holds under another expiry (Unix seconds, 0 never).

Open
OID
030725…5ac0:45
lockSession details

Inspect func

self

string

self is the arena's package path; a deploy under another path changes it.

Value

"gno.land/r/nym-gfanton001/gnomepit/arena/v0"

pagePath

untyped string

pagePath is where the page lives on its origin, the start of every trigger's link; the registry accepts only a link that starts with "/".

Value

"/gnomepit/"

tell

func(kind string, player .uverse.address, caller .uverse.address, id int, text string)

tell emits kind to player about match id. It emits nothing when player made the call, so an event never names its caller.

Open
OID
030725…5ac0:49
tell details

Inspect func

tellBoard

func(id int, text string)

tellBoard emits Board about match id, whose change altered the open-challenge list. It names no address, so a caller cannot aim it at one player's browser.

Open
OID
030725…5ac0:50
tellBoard details

Inspect func

tellEnded

func(m v0.record, id int, caller .uverse.address)

tellEnded sends Ended to each player of the finished match m, numbered id, but caller, one event each, since gnotif reads only the first value of a repeated attribute.

Open
OID
030725…5ac0:51
tellEnded details

Inspect func

endText

func(m v0.record, side int) string

endText says how m ended to the player on side.

Open
OID
030725…5ac0:52
endText details

Inspect func

retired

bool

Value

false

Retire

func()

Retire closes the arena to new challenges and acceptances, for good. Matches already running play out and are rated, and an open challenge can still be withdrawn. Owner only.

Open
OID
030725…5ac0:57
Retire details

Inspect func

TransferOwnership

func(newOwner .uverse.address)

TransferOwnership makes newOwner the owner. Owner only.

Open
OID
030725…5ac0:58
TransferOwnership details

Inspect func

Retired

func() bool

Retired reports whether the owner has retired the arena.

Open
OID
030725…5ac0:59
Retired details

Inspect func

refuseSession

func()

refuseSession refuses a call signed with a session key: the page signs a match's moves with one, so an owner who plays from the owner's wallet must not hand it the owner's calls.

Open
OID
030725…5ac0:61
refuseSession details

Inspect func

mustBeOpen

func()

mustBeOpen refuses a new match on a retired arena, or on one the standings realm takes no results from.

Open
OID
030725…5ac0:62
mustBeOpen details

Inspect func

Accept

func(id string, clan string, deck string, plan string)

Accept answers open challenge id as clan, with deck and the round-1 plan in plain text. When the challenge names an opponent, only that address may accept.

Open
OID
030725…5ac0:63
Accept details

Inspect func

Reveal

func(id string, deck string, deckSalt string, plan string, planSalt string, nextSeal string, nextBox string)

Reveal opens the challenger's sealed plan for the round being played, and on the first reveal the sealed deck, then resolves the round. A match that goes on needs nextSeal and nextBox for the challenger's next plan; one that ends takes neither.

Open
OID
030725…5ac0:65
Reveal details

Inspect func

Play

func(id string, plan string)

Play records the acceptor's plan for the round being played.

Open
OID
030725…5ac0:66
Play details

Inspect func

Resign

func(id string)

Resign withdraws the caller's open challenge, expired or not, deleting it, or concedes a running match.

Open
OID
030725…5ac0:67
Resign details

Inspect func

ClaimForfeit

func(id string)

ClaimForfeit ends a running match whose deadline has passed: the player who had to move loses. Any wallet may claim it; a session may claim only a match its wallet plays.

Open
OID
030725…5ac0:68
ClaimForfeit details

Inspect func

find

func(rules *v0.Ruleset, id string) (int, v0.record)
Open
OID
030725…5ac0:69
find details

Inspect func

lookup

func(rules *v0.Ruleset, id string) (int, v0.record, bool)

lookup returns the match id names, false when there is none. Only an id's own decimal text names it, never "01" or "+1".

Open
OID
030725…5ac0:70
lookup details

Inspect func

stateOf

func(rules *v0.Ruleset, m v0.record) v0.State

stateOf rebuilds the engine state the next round of m starts from. A round is resolved once the challenger's plan for it is stored; the specials of resolved rounds are spent.

Open
OID
030725…5ac0:71
stateOf details

Inspect func

checkSeal

func(seal string, salt string, text string)

checkSeal panics unless seal is the sha256 of salt's bytes followed by text.

Open
OID
030725…5ac0:72
checkSeal details

Inspect func

clanNumber

func(rules *v0.Ruleset, clan string) int

clanNumber is clan's index in rules plus one, as a record stores it, or 0 when no clan has that name.

Open
OID
030725…5ac0:73
clanNumber details

Inspect func

clanName

func(rules *v0.Ruleset, n int) string

clanName is the name of the clan a record stores as n, "" for none.

Open
OID
030725…5ac0:74
clanName details

Inspect func

planOf

func(rules *v0.Ruleset, text string) v0.Plan

planOf maps comma-separated card names to the engine's ids.

Open
OID
030725…5ac0:75
planOf details

Inspect func

deckBits

func(rules *v0.Ruleset, c v0.Clan, deck string) uint64

deckBits returns deck as the engine's bit set, panicking unless it is legal for c. A card named twice is illegal, so a legal deck text holds exactly the deck's names.

Open
OID
030725…5ac0:76
deckBits details

Inspect func

samePlan

func(p v0.Plan, q v0.Plan) bool
Open
OID
030725…5ac0:78
samePlan details

Inspect func

resultName

func(r v0.Result) string
Open
OID
030725…5ac0:79
resultName details

Inspect func

reasonOf

func(s v0.State) string

reasonOf says why a finished match ended: a gnome at 0 HP or less is a knockout.

Open
OID
030725…5ac0:80
reasonOf details

Inspect func

MatchSummary

type

MatchSummary is one match as a player's list shows it. Round is the round being played, or the last one resolved once the match is over. ToMove is the address that must move next, empty when none. Deadline is the end of the current move's 24 hours, or the expiry of an open challenge, in Unix seconds. Opponent is the address an open challenge is reserved for, "" when anyone can accept it and once accepted.

Value

v0.MatchSummary

MatchView

type

MatchView is everything one match screen needs. Plans holds \[challenger, acceptor] for each resolved round, and for the round being played while the match runs, "" while a plan is sealed or not yet made; HP holds both sides' HP after each resolved round; Box is the challenger's encrypted pending plan, in base64.

Value

v0.MatchView

SessionLock

type

SessionLock binds the session key at address Session to the match whose id is Match. Expires is the session's expiry in Unix seconds, 0 for none.

Value

v0.SessionLock

Locks

func(player .uverse.address) []v0.SessionLock

Locks lists player's session locks. It can include locks whose session has expired.

Open
OID
030725…5ac0:81
Locks details

Inspect func

Matches

func(player .uverse.address, offset int, limit int) []v0.MatchSummary

Matches lists player's matches, newest first: limit of them after skipping offset.

Open
OID
030725…5ac0:83
Matches details

Inspect func

Match

func(id string) v0.MatchView

Match returns the view of match id.

Open
OID
030725…5ac0:84
Match details

Inspect func

deckText

func(rules *v0.Ruleset, deck uint64) string

deckText names the cards of deck in card id order.

Open
OID
030725…5ac0:85
deckText details

Inspect func

planText

func(rules *v0.Ruleset, p v0.Plan) string

planText names the cards of p in play order.

Open
OID
030725…5ac0:86
planText details

Inspect func

notFound

untyped string

Value

"# Not found\n\nThe arena has no page at this path.\n"

Render

func(path string) string

Render serves the board of open challenges at "", one player's matches at "player/\<address>", and one match at "match/\<id>".

Open
OID
030725…5ac0:87
Render details

Inspect func

renderPlayer

func(player .uverse.address) string
Open
OID
030725…5ac0:90
renderPlayer details

Inspect func

renderMatch

func(v v0.MatchView) string
Open
OID
030725…5ac0:91
renderMatch details

Inspect func

outcome

func(result string, reason string) string
Open
OID
030725…5ac0:92
outcome details

Inspect func

report

func(rules *v0.Ruleset, m v0.record)

report sends match m, which has just ended, to the standings realm to be rated. A match its challenger accepted is not reported. Neither is any match while the arena is off the writer list, where Record would abort the ending.

Open
OID
030725…5ac0:96
report details

Inspect func

chunks

v0.Tree

// 4-byte chunk number → chunk string

Open
OID
030725…5ac0:99
chunks details

Inspect ref

players

v0.Tree

// address → player string

Open
OID
030725…5ac0:101
players details

Inspect ref

openList

string

Value

"\x00\x00\x00\x01j���\x00\x00\x00\x02j��\x19\x00\x00\x00\x03j��n"

loadMatch

func(rules *v0.Ruleset, id int) (v0.record, bool)

loadMatch returns match id, or false when it does not exist or was removed.

Open
OID
030725…5ac0:105
loadMatch details

Inspect func

saveMatch

func(rules *v0.Ruleset, id int, m v0.record)
Open
OID
030725…5ac0:106
saveMatch details

Inspect func

dropMatch

func(id int)

dropMatch removes match id; an absent id is left alone.

Open
OID
030725…5ac0:107
dropMatch details

Inspect func

putRecord

func(id int, rec string)
Open
OID
030725…5ac0:108
putRecord details

Inspect func

stringAt

func(t *v0.Tree, key string) string

stringAt returns the string under key, "" when there is none.

Open
OID
030725…5ac0:109
stringAt details

Inspect func

loadPlayer

func(a .uverse.address) v0.playerRecord
Open
OID
030725…5ac0:110
loadPlayer details

Inspect func

savePlayer

func(a .uverse.address, p v0.playerRecord)
Open
OID
030725…5ac0:111
savePlayer details

Inspect func

openAdd

func(id int, expires int64)

ceiling: each change rewrites the whole open list, 8 bytes per open challenge, so its gas grows with the board; an avl index keyed by expiry and id if the board holds thousands.

Open
OID
030725…5ac0:112
openAdd details

Inspect func

openNewest

func(now int64, offset int, limit int) []int

openNewest returns up to limit unexpired ids, newest first, after skipping offset of them.

Open
OID
030725…5ac0:114
openNewest details

Inspect func

openClear

func(now int64, max int) []int

openClear removes up to max expired entries from the front and returns their ids.

Open
OID
030725…5ac0:115
openClear details

Inspect func
moveWindow : untyped bigint =(86400 <untyped> bigint)
openWindow : untyped bigint =(604800 <untyped> bigint)
maxBox : untyped bigint =(104 <untyped> bigint)
maxPage : untyped bigint =(50 <untyped> bigint)
maxCleared : untyped bigint =(8 <untyped> bigint)
idDigits : untyped bigint =(10 <untyped> bigint)
phaseOpen : untyped string ="open"
phaseReveal : untyped string ="reveal"
phasePlay : untyped string ="play"
phaseEnded : untyped string ="ended"
phaseExpired : untyped string ="expired"
lastID : int =3
OpenChallenge : type =v0.OpenChallenge
Challenge : func(clan string, deckSeal string, planSeal string, box string, opponent .uverse.address) string Inspect
Open : func(offset int, limit int) []v0.OpenChallenge Inspect
forget : func(id int, challenger .uverse.address) Inspect
checkPage : func(offset int, limit int) Inspect
boxBytes : func(text string) string Inspect
canonical : func(a .uverse.address) bool Inspect
validSeal : func(s string) bool Inspect
chunkSize : untyped bigint =(64 <untyped> bigint)
addressSize : untyped bigint =(40 <untyped> bigint)
sealSize : untyped bigint =(32 <untyped> bigint)
lockSize : untyped bigint =(48 <untyped> bigint)
openSize : untyped bigint =(8 <untyped> bigint)
planBits : untyped bigint =(20 <untyped> bigint)
cardBits : untyped bigint =(6 <untyped> bigint)
maxPlanLen : untyped bigint =(3 <untyped> bigint)
maxRound : untyped bigint =(3 <untyped> bigint)
maxPool : untyped bigint =(16 <untyped> bigint)
bitsAt : func(v uint64, at uint, width uint) uint64 Inspect
withBits : func(v uint64, at uint, width uint, x uint64) uint64 Inspect
mask : func(width uint) uint64 Inspect
planAt : func(plans uint64, round int) v0.Plan Inspect
withPlan : func(plans uint64, round int, p v0.Plan) uint64 Inspect
plansMade : func(plans uint64) int Inspect
planOffset : func(round int) uint Inspect
deckOnPool : func(pool uint64, deck uint64) uint16 Inspect
deckFromPool : func(pool uint64, bits uint16) uint64 Inspect
cardsIn : func(pool uint64) uint Inspect
writer : type =v0.writer
reader : type =v0.reader
record : type =v0.record
flagOpponent : untyped bigint =(1 <untyped> bigint)
flagDeckSeal : untyped bigint =(2 <untyped> bigint)
flagSealBox : untyped bigint =(4 <untyped> bigint)
phaseNames : []string (len=4) Inspect
resultNames : []string (len=4) Inspect
reasonNames : []string (len=5) Inspect
nameIndex : func(names []string, s string, what string) uint64 Inspect
nameAt : func(names []string, i uint64, what string) string Inspect
encodeMatch : func(rules *v0.Ruleset, m v0.record) string Inspect
decodeMatch : func(rules *v0.Ruleset, b string) v0.record Inspect
clanNibble : func(rules *v0.Ruleset, clan int) uint64 Inspect
poolOf : func(rules *v0.Ruleset, clan int) uint64 Inspect
chunkRecord : func(chunk string, slot int) string Inspect
withChunkRecord : func(chunk string, slot int, rec string) string Inspect
playerRecord : type =v0.playerRecord
sessionLock : type =v0.sessionLock
decodePlayer : func(s string) v0.playerRecord Inspect
encodePlayer : func(p v0.playerRecord) string Inspect
openEntry : type =v0.openEntry
openEntries : func(s string) []v0.openEntry Inspect
encodeOpen : func(entries []v0.openEntry) string Inspect
guard : func(fromUser bool, caller .uverse.address, m v0.record, id int) Inspect
join : func(fromUser bool, caller .uverse.address, id int) Inspect
signingSession : func(fromUser bool) (.uverse.address, int64, bool) Inspect
lockSession : func(locks []v0.sessionLock, session .uverse.address, expires int64, id int, opening bool, now int64) (kept []v0.sessionLock, changed bool, refusal string) Inspect
self : string ="gno.land/r/nym-gfanton001/gnomepit/arena/v0"
pagePath : untyped string ="/gnomepit/"
init.70 : func() Inspect
tell : func(kind string, player .uverse.address, caller .uverse.address, id int, text string) Inspect
tellBoard : func(id int, text string) Inspect
tellEnded : func(m v0.record, id int, caller .uverse.address) Inspect
endText : func(m v0.record, side int) string Inspect
owner : *v0.Ownable Inspect
retired : bool =false
init.77 : func() Inspect
Retire : func() Inspect
TransferOwnership : func(newOwner .uverse.address) Inspect
Retired : func() bool Inspect
Owner : func() .uverse.address Inspect
refuseSession : func() Inspect
mustBeOpen : func() Inspect
Accept : func(id string, clan string, deck string, plan string) Inspect
Reveal : func(id string, deck string, deckSalt string, plan string, planSalt string, nextSeal string, nextBox string) Inspect
Play : func(id string, plan string) Inspect
Resign : func(id string) Inspect
ClaimForfeit : func(id string) Inspect
find : func(rules *v0.Ruleset, id string) (int, v0.record) Inspect
lookup : func(rules *v0.Ruleset, id string) (int, v0.record, bool) Inspect
stateOf : func(rules *v0.Ruleset, m v0.record) v0.State Inspect
checkSeal : func(seal string, salt string, text string) Inspect
clanNumber : func(rules *v0.Ruleset, clan string) int Inspect
clanName : func(rules *v0.Ruleset, n int) string Inspect
planOf : func(rules *v0.Ruleset, text string) v0.Plan Inspect
deckBits : func(rules *v0.Ruleset, c v0.Clan, deck string) uint64 Inspect
samePlan : func(p v0.Plan, q v0.Plan) bool Inspect
resultName : func(r v0.Result) string Inspect
reasonOf : func(s v0.State) string Inspect
MatchSummary : type =v0.MatchSummary
MatchView : type =v0.MatchView
SessionLock : type =v0.SessionLock
Locks : func(player .uverse.address) []v0.SessionLock Inspect
Matches : func(player .uverse.address, offset int, limit int) []v0.MatchSummary Inspect
Match : func(id string) v0.MatchView Inspect
deckText : func(rules *v0.Ruleset, deck uint64) string Inspect
planText : func(rules *v0.Ruleset, p v0.Plan) string Inspect
notFound : untyped string ="# Not found\n\nThe arena has no page at this path.\n"
Render : func(path string) string Inspect
renderBoard : func() string Inspect
renderPlayer : func(player .uverse.address) string Inspect
renderMatch : func(v v0.MatchView) string Inspect
outcome : func(result string, reason string) string Inspect
date : func(unix int64) string Inspect
orNone : func(s string) string Inspect
report : func(rules *v0.Ruleset, m v0.record) Inspect
chunks : v0.Tree Inspect
players : v0.Tree Inspect
openList : string ="\x00\x00\x00\x01j���\x00\x00\x00\x02j��\x19\x00\x00\x00\x03j��n"
chunkKey : func(id int) string Inspect
loadMatch : func(rules *v0.Ruleset, id int) (v0.record, bool) Inspect
saveMatch : func(rules *v0.Ruleset, id int, m v0.record) Inspect
dropMatch : func(id int) Inspect
putRecord : func(id int, rec string) Inspect
stringAt : func(t *v0.Tree, key string) string Inspect
loadPlayer : func(a .uverse.address) v0.playerRecord Inspect
savePlayer : func(a .uverse.address, p v0.playerRecord) Inspect
openAdd : func(id int, expires int64) Inspect
openRemove : func(id int) Inspect
openNewest : func(now int64, offset int, limit int) []int Inspect
openClear : func(now int64, max int) []int Inspect