Skip to content

Commit 5204005

Browse files
committed
Fix function name
1 parent 9f11522 commit 5204005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lc2fen/predict_board.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def sort_pieces_list(_pieces_probs_sort):
135135
return [w_bishops, w_knights, w_pawns, w_queens, w_rooks, b_bishops,
136136
b_knights, b_pawns, b_queens, b_rooks]
137137

138-
def max(tops):
138+
def _max(tops):
139139
"""Returns the index of the piece with max probability."""
140140
value = tops[0][0][0] # B
141141
idx = 0
@@ -220,7 +220,7 @@ def bishop_pos_ok(max_idx, tops):
220220
while out_preds_empty > 0:
221221
# Fill in the square in out_preds that has the piece with the
222222
# maximum probability of all the board
223-
max_idx = max(tops)
223+
max_idx = _max(tops)
224224
# If we haven't maxed that piece type and the square is empty
225225
if (max_pieces_left[max_idx] > 0
226226
and out_preds[tops[max_idx][1]] is None

0 commit comments

Comments
 (0)