Skip to content

Instantly share code, notes, and snippets.

@DanielSlater
Created October 21, 2017 20:23
Show Gist options
  • Save DanielSlater/3e60b01f3a9dae8ad158512cf9a026b1 to your computer and use it in GitHub Desktop.
Save DanielSlater/3e60b01f3a9dae8ad158512cf9a026b1 to your computer and use it in GitHub Desktop.
while result == 0:
move_states = {move: apply_move(current_board_state, move, current_side)
for move in available_moves(current_board_state)}
if not move_states:
result = 0
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment