chess package

Overview

Realm chess implements a Gno chess server.

Function

ListGames

func ListGames(filters string) string

ListGames provides game listing functionality, with filter-based search functionality. available filters: player:<player> white:<player> black:<player> finished:bool limit:int id<cmp>int sort:asc/desc <cmp>: '<' or '>' <player>: either a bech32 address, "@user" (r/demo/users), or "caller"

Param

Command

gnokey query -remote "tcp://0.0.0.0:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/morgan/chess" -func "ListGames"  -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "zenao-dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "tcp://0.0.0.0:26657" call.tx