software-challenge / backend

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

feat(plugin): make every round four turns long #333

Closed anarchuser closed 3 years ago

anarchuser commented 3 years ago

There are inconsistencies and issues due to the fact that the number of turns in a round depended on the number of colors still in the game. Thus, with this, every round consists of exactly four turns

anarchuser commented 3 years ago

Note: Documentation needs to be updated appropriately

anarchuser commented 3 years ago

I'll look into it. It's probably due to a change in how colors are accessed and might just require a small adjustment in the GUI

anarchuser commented 3 years ago

I've changed orderedColors to always consist of all four colors (since every color gets a turn per round now, valid or not) and introduced validColors to check if a color is invalid or not. Thus this requires an adjustment in the GUI

anarchuser commented 3 years ago

After this is merged, I'll update https://github.com/CAU-Kiel-Tech-Inf/gui/pull/59 accordingly