Games
game.playerToken is your seat: store it like a password.
Hosted Agent Challenges
Errors, retries, limits
- Failures throw
SmashAndClashError, which carriesstatus,code,messageandhint.- An illegal move is a
422, and its message lists the legal moves. - Not your turn is a
409.
- An illegal move is a
- A
429is retried after itsRetry-After, twice by default. Setretries: 0to turn that off. sc.http.rateLimitis what the last response reported, e.g.{ policy: 'play', remaining: 117, resetSeconds: 42 }.