diff options
author | emkael <emkael@tlen.pl> | 2019-07-17 23:19:21 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-07-17 23:19:21 +0200 |
commit | 886f8f4c9de8e4433987ac2b3b6edcf021f7d309 (patch) | |
tree | 90035e5e11c795a1cbdcf51fc247a72f41e84d7f /bcdd/DDTable.py | |
parent | 3926c5ee36cc3339ecf1fe5ca8750dc8b17363a0 (diff) |
Fixes for C#->Python port of regex matches iteration
Diffstat (limited to 'bcdd/DDTable.py')
-rw-r--r-- | bcdd/DDTable.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bcdd/DDTable.py b/bcdd/DDTable.py index c4fc030..db4ef76 100644 --- a/bcdd/DDTable.py +++ b/bcdd/DDTable.py @@ -56,10 +56,10 @@ class DDTable(object): ability = self._board.get_ability() abilities = self._board.validate_ability(ability) for player_ability in abilities: - player = player_ability.groups(1)[0] + player = player_ability[0] player_id = BCalcWrapper.PLAYERS.index(player) denom_id = 4 - for tricks in player_ability.group(2): + for tricks in player_ability[1]: result[player_id][denom_id] = int(tricks, 16) denom_id -= 1 return self._validate_table(result) |