# Bewertung eines Spiels

**Basically:**The rating of a game is based on team-ELO. The team scores of all participating teams are used together with the K-factor to calculate the new team points. All players will be credited with the difference in the amount of their own points earned or lost.

The calculation described here is valid for the current league cycle.

## Detailed listing

**A game is not scored if the points described in here apply.**

**New players have 1500 points in the rating at the beginning.**

**The result of each game is included in the rating as follows:**

- Addition of the current rating values of each player within his team and subtraction of the result by the number of players in the team, so that there is a team ELO for each team.
**The K-factor (output value 16 points) is influenced by the following data:**- If there is at least 1 player in the game who has registered in the aLobby within the last 30 days and who has less than 10 league games, the K-factor will be
*increased*by 2.*Reason:*this is supposed to give new players a chance in games with experienced settlers, which ultimately helps the community.

- If the sum of the points of the participating teams differs by less than 1000 points,
*increase*the K-factor by 4.*Reason:*the game seems to have run out very close.

- If the winning team has less points than the losing team, then increase the K-factor by 4.
*Reason:*the game was obviously decided by good tactics in team play.

- If the winning team has more than 5000 points more than the losing team, then
*reduce*the K-factor by 4.*Reason:*Apparently the game wasn't very fair.

- If a often played map has been played,
*reduce*the K-factor by 2 (only for Setmap).- “Often”: the map has been played at least 10 times in the last 3 months via the aLobby (no matter if league, tournament or normal).
*Reason:*this is not meant to reward playing for the league.

- If there were more than 2 teams in the match, then
*increase*the K-factor by 8.*Reason:*playing with more than 2 teams is a bigger challenge for everyone involved.

- If the game has finished correctly (identifiable on the statistic screenshot), increase the K-factor by 2 (only for Setmap, not for Randoms).
*Reason:*this is a reward for playing a game correctly and not finishing it prematurely, which is rare in Random. This is what the above mentioned come for. possible scores statistically more common in random games than setmap games.

**Evaluation of the Team-ELO according to the following ELO formula:**ratingTeam + ( kfactor * ( WinLost - ( 1 / ( 1 + ( 10 ^ ( ( ratingOpponentTeam - ratingTeam ) / 400 ) ) ) ) ) )

**ratingTeam**the calculated team rating value**WinLost**can take the value 1 (for won) or 0 (for lost)**kfactor**is the previously calculated K-factor**ratingOpponentTeam**the calculated team rating of the opposing team against which the winning team is compared.*Hinweis:*In the calculation, only the winning team is compared with all other teams. There is no comparison between teams that have not won the match.

**Each team is calculated by how many points the starting team ELO differs from the new team ELO.****This difference is calculated as follows for each individual player of the respective teams:**- Winner-Team:
neuerSpielerRatingWert = alterSpielerRatingWert + berechneteDifferenz/PlayerExperience

- Loser-Team(s):
neuerSpielerRatingWert = alterSpielerRatingWert - berechneteDifferenz/PlayerExperience

- The experience value of a player corresponds to thehere table.

**Additionally, this addition can be influenced by***exactly one*of the following possibilities:- If the player has played less than 10 league games in the current cycle in the last 90 days, he gets 10 points added.
*Reason:*newcomers or returnees have a chance to increase their ranking.

- If the player has been logged into the aLobby for the last 30 days and has only lost league games in the current cycle (i. e. won none since then), he will receive 10 points added up.
*Reason:*newcomers or those returning home have a chance to increase their ranking.

- If the player plays a league game in the current cycle for the first time in 3 months, he gets 10 points added.
*Reason:*It should be clear.

- If the player's rating of
*before*the game was 250 points from the best in the game, he gets 10 points added (whether the other player was on the same team or not)*Reason:*so even weaker players will be rewarded minimum to avoid crashing too much.

**The calculated new rating values are then saved for each player and are immediately visible in the ranking.**

## Hints

- During the calculation, all calculated values are rounded mathematically (see https://de.wikipedia.org/wiki/Rundung#Mathematisches_Runden). Within the league, except for invoicing, only integers are used.
- The exact calculation method for each game is shown on the game details page at https://liga.siedler3.net There, every single player can see after a evaluated game how the calculation is composed.
- On https://liga.siedler3.net you will find the menu item “League-Tools”in the left menu. There you can find a simple calculator for the league.

## Examples

### Example 1

- A random map is played.
- Team 1 consists of 2 players with a rating of 1500 each (so are new and had no games so far).
- Team 2 consists of 2 players A with a rating of 1400 and player B with a rating of 1700 (each with 20 games).
- Calculated team ELO before the match:
- Team 1: 1500
- Team 2: 1550

- Team 1 wins the game with a difference of 1280 points from Team 2, resulting in the following calculation:
- The K-factor is influenced as follows:
- There have been new players: 2 points added.
- Results in 18 points as K-factor.

- For Team 1:
1500 + ( 18 * ( 1 - ( 1 / ( 1 + ( 10 ^ ( ( 1550 - 1500 ) / 400 ) ) ) ) ) )

- Sum: 1510,28 ⇒ 1510

- For Team 2:
1550 + ( 18 * ( 0 - ( 1 / ( 1 + ( 10 ^ ( ( 1500 - 1550 ) / 400 ) ) ) ) ) )

- Sum: 1539,71 ⇒ 1540

- Consequently, players have the following rating after the game:
- each player receives an additional 10 points as new players were present.
- Team 1
- they will receive 10 points, which in turn will be deducted with the experience of 25%.
- added to this is that they are new, so you get 10 points in addition to that.
- Spieler A: 1550
- Spieler B: 1550

- Team 2
- 10 points would have to be deducted from the team, but they receive 10 points, which results in 0 points, so their experience of 98.5% does not matter.
- Spieler C: 1400
- Spieler D: 1700

### Example 2

- The Bazooka-Map is played with 6 players.
- Team 1:
- Player A: 1480 (7 Spiele)
- Player B: 1710 (5 Spiele)
- Player C: 1500 (neu dabei)

- Team 2:
- Player D: 1520 (10 Spiele)
- Player E: 1520 (2 Spiele)
- Player F: 1760 (25 Spiele)

- Calculated Team-ELO before the match:
- Team 1: 1563
- Team 2: 1600

- Team 2 wins the game with a difference of 10150 points from Team 1, resulting in the following calculation:
- The K-factor is influenced as follows:
- A frequently played map was played. So 2 points deduction at the K-factor.
- The game was finished correctly. So add 2 points to the K-factor.
- The winning team has more than 5000 points more than the losing team. So reduce the K-factor by four.
- Results in 12 points as K-factor.

- For Team 1:
1563 + ( 12 * ( 0 - ( 1 / ( 1 + ( 10 ^ ( ( 1600 - 1563 ) / 400 ) ) ) ) ) )

- Sum: 1558,00 ⇒ 1558

- For Team 2:
1600 + ( 12 * ( 1 - ( 1 / ( 1 + ( 10 ^ ( ( 1563 - 1600 ) / 400 ) ) ) ) ) )

- Sum: 1605,14 ⇒ 1605

- Consequently, players have the following rating after the game:
- each player receives an additional 10 points because there was a new player.
- Team 1
- Player A: 1485, because -5 Punkte + 10 Points = 5 Points, on the basis of 70% experience, 7 points will be awarded.
- Player B: 1718, because -5 Punkte + 10 Points = 5 Points, on the basis of 60% experience, 8 points will be awarded.
- Player C: 1520, because -5 Punkte + 10 Points = 5 Points, on the basis of 25% experience, 20 points will be awarded.

- Team 2
- Player D: 1537, because 5 + 10 = 15, with experience 17 points
- Player E: 1555, because 5 + 10 = 15, with experience it becomes 25 points
- Player F: 1775, because 5 + 10 = 15, Experience doesn't change that.