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.

z2_lie_filetest.gno

0.82 Kb · 28 lines
 1// PKGPATH: gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/z2
 2
 3// A false ranked score that would make the top 10 is refused.
 4package z2
 5
 6import (
 7	"strings"
 8
 9	rules "gno.land/p/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/brawl"
10	"gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/brawl"
11)
12
13var _ = strings.Repeat
14
15func run(c int) string {
16	a := strings.Repeat(string(rules.Encode(1, rules.None)), 9) + string(rules.Encode(1, rules.Attack))
17	b := strings.Repeat(string(rules.Encode(c, rules.None)), 9) + string(rules.Encode(4, rules.Special))
18	return strings.Repeat(a+b, 30)
19}
20
21var still = strings.Repeat(string(rules.Encode(rules.Still, rules.None)), 600)
22
23func main(cur realm) {
24	brawl.Submit(cross(cur), brawl.HardBot, 0, rules.Reader, "Tester", run(2), 99, 0)
25}
26
27// Error:
28// the chain replayed this run and got 1-62, not 99-0