Skip to content

Commit

Permalink
Update modo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cderickson committed Apr 30, 2022
1 parent ddf5b37 commit 70f5dac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modo.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ def get_winner(curr_game_list,p1,p2):
GAME_WINNER = get_winner(curr_game_list,P1,P2)
if GAME_WINNER == "NA":
ALL_GAMES_GA[f"{MATCH_ID}-{GAME_NUM}"] = curr_game_list
if GAME_NUM == 1:
if (GAME_NUM == 1) and (len(G1) == 0):
G1.extend((MATCH_ID,
alter(P1,original=True),
alter(P2,original=True),
Expand All @@ -899,7 +899,7 @@ def get_winner(curr_game_list,p1,p2):
TURNS,
GAME_WINNER))
GAME_DATA.append(G1)
elif GAME_NUM == 2:
elif (GAME_NUM == 2) and (len(G2) == 0):
G2.extend((MATCH_ID,
alter(P1,original=True),
alter(P2,original=True),
Expand All @@ -913,7 +913,7 @@ def get_winner(curr_game_list,p1,p2):
TURNS,
GAME_WINNER))
GAME_DATA.append(G2)
elif GAME_NUM == 3:
elif (GAME_NUM == 3) and (len(G3) == 0):
G3.extend((MATCH_ID,
alter(P1,original=True),
alter(P2,original=True),
Expand Down

0 comments on commit 70f5dac

Please sign in to comment.