How is the rank for single finished bot-programming computed?

How is the rank computed in a single, already finished bot programming contest? (test in arena)

Is there any formula for it?
For the same source code I score eg from 8 to 59 depending on run.

Please see if these pages helps answer your question:


Thx @5DN1L, below also may be helpful

feel free to propose an update of this page with more details about the ranking system in bot programming:
Doc about turn-based games