diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-05-15 01:15:19 +0200 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-05-15 02:47:20 +0200 |
commit | eeb1aa3d0819921f7935dd73b307d69847ba779d (patch) | |
tree | b2b849a833feadc04aa2762f974d88ff370cf74b /swiftstory | |
parent | 1d59a8683fa5847ccdd40b65c7bfdce5073b6a25 (diff) |
Use enumerate(...) instead of range(len(...))
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory')
-rw-r--r-- | swiftstory/Game.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swiftstory/Game.py b/swiftstory/Game.py index ee1fd86..e80b7b2 100644 --- a/swiftstory/Game.py +++ b/swiftstory/Game.py @@ -14,8 +14,8 @@ class Game: self.white_desc = white_desc self.black_desc = black_desc - white_pick = [i for i in range(len(self.white_desc))] - black_pick = [i for i in range(len(self.black_desc))] + white_pick = [i for i, _ in enumerate(self.white_desc)] + black_pick = [i for i, _ in enumerate(self.black_desc)] self.state = self.WAITING_NEW_JUDGE |