mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 04:15:45 -08:00
update CHECKERS for python
found an indentation error, played game to completion.
This commit is contained in:
@@ -128,11 +128,13 @@ class Board:
|
||||
for delta_x, delta_y in self.get_legal_deltas_for_space(start_x, start_y):
|
||||
new_move_record = self.check_move(start_x, start_y, delta_x, delta_y)
|
||||
|
||||
if new_move_record is None:
|
||||
continue
|
||||
if new_move_record is None:
|
||||
continue
|
||||
|
||||
if (move_record is None) or (new_move_record.quality > move_record.quality):
|
||||
move_record = new_move_record
|
||||
if (move_record is None) or (
|
||||
new_move_record.quality > move_record.quality
|
||||
):
|
||||
move_record = new_move_record
|
||||
|
||||
return move_record
|
||||
|
||||
|
||||
Reference in New Issue
Block a user