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.

z6_storage_filetest.gno

0.41 Kb · 16 lines
 1// PKGPATH: gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/z6
 2
 3// One match on its own, to keep an eye on storage per match.
 4package z6
 5
 6import (
 7	"gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/arena/v2"
 8	_ "gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/bots/starter/v2"
 9)
10
11func main(cur realm) {
12	println(arena.Fight(cross(cur), "hunter", "coward"))
13}
14
15// Output:
16// #1 hunter 13 - 12 coward, hunter wins