Finish

This endpoint is used to inform players that one tournament has finished and calculate winnings.

When the Cloud Task calls the endpoint

  • Blocking accepting more insights on the tournament
  • Calculate winners based on participants
  • Distribute winnings to the balances
  • Deliver socket message tournament_finish on room tournamentwith tournament information.

Distribution winners algorithm

  • We start with winning amount
  • Each reward get half of the left winning amount round up to dozens
  • When winning amount end, latest player get remaining amount
  • When players end, latest player get remaining amount
Language
Credentials
Header
Click Try It! to start a request and see the response here!