RPS API

Base API URL

https://rps.gamertike.com/api/

GET/{choice?}

choices

  • rockr
  • paperp
  • scissorss

response

  • you: "rock" | "paper" | "scissors" - Your choice
  • computer: "rock" | "paper" | "scissors" - The computers choice
  • winner: boolean | null - Whether you won the game. If null, it's a draw.