Leaderboards

As you lead your squad against enemy forces in Templar Battleforce, you automatically gain a Leaderboard score. Your score is posted to a leaderboard based on your Difficulty (Easy, Normal, and on up to Nightmare or Ironman).

Your Leaderboard score is submitted whenever you abort a level, are defeated in a level, or are victorious in a level. These three game events all trigger a new score to be posted for your game. Because you can only have a single score per leaderboard the highest score that you have posted from a squad will be the on that sticks on the leaderboard. If you start a new squad in Brutal, but already have a veteran squad there, your new squad would have to surpass your original team's score before you'll see a new score posted.

## How the Score is Calculated

This is an intentionally vague description of how scoring works from Cory Trese. It also contradicts observations.

To achieve the best possible leaderboard score, consider these tips on how the score is calculated:

* Your score is increased by the total amount of Experience of the 10 most experienced Templars, including dead ones.
* Your score is increased by the average amount of Experience between all Templars, including dead Templars. Average Experience is weighted more heavily than total.
* Your score is increased by the number of scenarios in which you have been victorious.
* Your score is increased by the sum of all turns by which you have beaten Turn Goals. Therefore, if you played 10 levels, and each one you finished ahead of the Turn Goal for the level, your score would be much higher than if you had tied the Turn Goal in each level.
* Your score is increased by the sum of all Kill Rates that you have achieved in levels. Therefore, if you played 10 levels, and each one you killed 8 enemy a turn, your score would be much higher than if you killed only 4 enemy a turn. The kill rate is the number of kills divided by
* Your score is reduced for each Templar who dies.
* Your score is heavily reduced by each level in which you declare defeat or abort the mission.

## How the Score is Really Calculated

The following was deduced by playing the tutorial many times, and also by recruit/dismissing templars.

### Per mission scores

* Turn bonus: 1000\*max(0,goal+1-turn)
* Kill rate bonus: 10000\*rate where the kill rate is from the Records rounded to 1 decimal. The kill rate in the Records is based on "confirmed kills", whatever they are, and does not include indirect kills such as those by turrets, napalm, poison and those by Nyra and Luthor.
* Mission success/failures: Their contribution to the score is not known.

The sum (over all missions) of the per missions scores is added to the score.

Note that although the kill rate from the Records counts for calculating the kill rate bonus, for the kill rate experience bonus the debrief screen seems to be what counts. So those turrets, napalm, and poison kills do help amassing experience.

### Experience

From all living and dead templars (but not the dismissed), take the 10 with the **least** experience or fewer if there aren't that many. Say, we have *n* templars in this set.

* Bandwidth bonus: 100\*sum(exps)
* Compactness bonus: 1000\*sum(exps)/n

It is not known whether deaths are penalized in other ways, but it is easy to see from this that dead templars drag these numbers down, because the calculation is based on the least experienced knights contrary to what the developers stated and what the wiki says. This might be a bug.