File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -216,9 +216,9 @@ def __predict_optimal_move(self, side: SideType) -> list[Move]:
216
216
217
217
try :
218
218
if (side == SideType .WHITE ):
219
- result = ( self .__field .white_checkers_count + self . __field . count_checkers_by_type ( CheckerType . WHITE_QUEEN ) * 2 ) / ( self .__field .black_checkers_count + self . __field . count_checkers_by_type ( CheckerType . BLACK_QUEEN ) * 2 )
219
+ result = self .__field .white_score / self .__field .black_score
220
220
elif (side == SideType .BLACK ):
221
- result = ( self .__field .black_checkers_count + self . __field . count_checkers_by_type ( CheckerType . BLACK_QUEEN ) * 2 ) / ( self .__field .white_checkers_count + self . __field . count_checkers_by_type ( CheckerType . WHITE_QUEEN ) * 2 )
221
+ result = self .__field .black_score / self .__field .white_score
222
222
except ZeroDivisionError :
223
223
result = inf
224
224
You can’t perform that action at this time.
0 commit comments