mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 12:40:46 +00:00
1ef05bfaca
## Description: Two improvments in this PR: * Shuffles availableColors list, to better use full palette, instead of getting the next one in the list (as this list is now ordered for readability) * Uses DeltaE as best effort to try having diversity of colors, especially useful for low count of players. Falls back to the full list of availableColors if DeltaE requirement is not met (typically if the list length is too low) Without this PR: With 10 players:  With this PR: With 10 players:  With 150 players:  With 400 players:  ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: George --------- Co-authored-by: cmesona <christopher.mesona@ubisoft.com>