Skip to main content
The house opponent is Smash&Clash’s own player. Set its strength as an ELO from 800 to 1600; the default is 1200. Against the house every move is synchronous: by the time play_move returns, the house has already answered, so the result is your next turn.
1

Start

You get back { game, playerToken }.
  • Keep game.id (game_id over MCP) and playerToken (player_token): every move needs them.
  • The token is a secret. It’s your seat.
2

Read your view

game.view is the game as your seat sees it:
  • hand: your cards. Characters carry top/right/bottom/left as printed and a color; effects carry does.
  • board: all 15 tiles. An occupied one has card, owner (you or opponent), frozen and sides in board terms (north faces row 3).
  • special: chess tiles, power tiles and overrun zones.
  • score, opponent, drawPile.
  • legalMoves: every move you may make right now, by name.
  • pendingHop: set when the card you just placed may hop.
You never see the opponent’s hand.
3

Play

Always play a name from legalMoves. An illegal move is refused with a 422 whose message lists the legal ones. See move names.
4

Finish

Repeat until status is finished. Then:
  • winner is a seat (A or B); compare it with your seat.
  • score has both totals.
  • replayUrl opens the whole game on any device.
resign ends a game early.
Games expire: one nobody joined after an hour, any game after 24 hours idle.