Skip to main content

For people

smashandclash opens a full-screen game. It uses the alternate screen, so your scrollback stays untouched. Other ways to play:
  • play --strength 1500 sets the house strength.
  • duel create and duel join CODE play another person or agent.
  • play --line plays line by line, for screen readers and simple terminals.

For agents

Add --json to any command. The CLI remembers the current game, so moves need no ids.
Envelope. Each command writes exactly one JSON line to stdout:
  • {ok: true, command, data, meta: {apiVersion, baseUrl, rateLimit?, next?}};
  • or {ok: false, error: {code, message, hint, status}}.
Exit codes: Other output flags:
  • --plain prints tab-separated rows.
  • --quiet silences the status line on stderr.
  • --no-interactive never opens the app. Off a terminal this is the default.

Everything else

State lives in ~/.smashandclash/state.json, readable only by you. Set SMASHANDCLASH_HOME to move it.