Skip to content

Commit

Permalink
fix a obvious bug about good_indices[j] index out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
747929791 committed Jun 11, 2020
1 parent 36b50b9 commit 9c74ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents/jianyang_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ def not_all_last_richii(waiting_riichi, bot, hand_ana):
sorted_indices.append(bad_indices[j])
j += 1
else:
sorted_indices.append(good_indices[j])
sorted_indices.append(good_indices[i])
i += 1
for index in sorted_indices:
to_discard = waiting_riichi[index][0]
Expand Down

0 comments on commit 9c74ca6

Please sign in to comment.