software-challenge / backend

Server, Client und Spiel-Plugins der Software-Challenge Germany
https://www.software-challenge.de
11 stars 10 forks source link

Point calculation seems to be wrong #290

Closed anarchuser closed 4 years ago

anarchuser commented 4 years ago

The game presented in the image below ended the game with the following scores:

Player 0: Gewinner=1; ∅ belegte Felder=-30
Player 1: Gewinner=1; ∅ belegte Felder=-31

Screenshot_20200915_161647

According to manual calculation, the scores should actually be:

Player 0 (Blue + Red):     (-27) + (-46) = -73
Player 1 (Yellow + Green): ( -3) +   15  =  12
                             +=      +=
                          ((-30)) ((-31))
anarchuser commented 4 years ago

It suggests that for point calculation, Player 0 consisted of Blue and Yellow while Player 1 consisted Red and Green.

anarchuser commented 4 years ago

The GUI correctly displays B, R -> Player 1 and Y, G -> Player 2.

Yet, B, Y contribute to P1's score while R, G contribute to P2's score

anarchuser commented 4 years ago

Issue got caused by Teams having wrong lists of colors. This will be fixed by https://github.com/CAU-Kiel-Tech-Inf/backend/pull/291