How is scoring done in "Back To Code"?

There is a leader board which has some kind of scores. Every battle also shows some score.
Is there a link that explains how this scoring is done?
And what does the progress mean?
Lastly, how are the bots matched with each other?