Skip to content Search Apps Documentation Source Content 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.

minichess package

Overview

Package minichess is an on-chain chess game (standard 8x8 board).

Two ways to play:

  • Solo: NewSoloGame starts a game against the built-in bot. The bot replies inside the same transaction as your move.
  • Two players: Challenge creates a game (open to anyone, or for one invited address); AcceptChallenge takes the empty seat.

Moves use coordinate notation: "e2e4", "g1f3", castling as the king's move ("e1g1"), en passant as the pawn's move to the target square, and promotion as "e7e8" (queen) or "e7e8n" (under-promotion). Visit the realm in gnoweb to see the board and click legal moves.

Function

GameStatus

func GameStatus(gameID int) string
Ask AI Claude ChatGPT

GameStatus returns a one-line status for a game.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1um2pwwnx3gn8p3ryfdert8mhpu4u4up49sc9ru/minichess.GameStatus()"

Result