// PKGPATH: gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/z3 // Practice runs, weaker ranked runs and ghost duels are only counted: no replay, nothing stored. package z3 import ( "strings" rules "gno.land/p/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/brawl/v4" "gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/brawl/v4" ) var _ = strings.Repeat func run(c int) string { a := strings.Repeat(string(rules.Encode(1, rules.None)), 9) + string(rules.Encode(1, rules.Attack)) b := strings.Repeat(string(rules.Encode(c, rules.None)), 9) + string(rules.Encode(4, rules.Special)) return strings.Repeat(a+b, 30) } var still = strings.Repeat(string(rules.Encode(rules.Still, rules.None)), 600) func main(cur realm) { brawl.Submit(cross(cur), brawl.HardBot, 0, rules.Reader, "Tester", run(0), 3, 60) println(brawl.Submit(cross(cur), brawl.EasyBot, 7, rules.Coward, "Tester", still, 40, 1)) println(brawl.Submit(cross(cur), brawl.HardBot, 4, rules.Coward, "Tester", run(3), 0, 64)) println(brawl.Submit(cross(cur), 10, 0, rules.Hunter, "Tester", run(5), 9, 2)) println(brawl.RunCount(), brawl.Top()) } // Output: // 0 // 0 // 0 // 4 [{"id":10,"player":"g1rlwtj72r2qqm2gke0lps0af0ermmdl9wnwyt3q","name":"Tester","class":4,"seed":0,"arena":"Tavern","gold":3,"botGold":60,"height":123}]