google-deepmind / pysc2

StarCraft II Learning Environment
Apache License 2.0
7.96k stars 1.15k forks source link

Update colors.py to Python 3.11+ #348

Closed rayanehmi closed 1 year ago

rayanehmi commented 1 year ago

random.shuffle() does not take a seed parameter anymore since Python 3.9 and crashes Python 3.11+. This small fix provides the same functionality using another fixed seed RNG.

google-cla[bot] commented 1 year ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

tewalds commented 1 year ago

This is merged in b006342