Skip to content

Instantly share code, notes, and snippets.

@salma71
Last active March 4, 2018 00:32
Show Gist options
  • Save salma71/aa729893e5994c7c03ac74134cf829b8 to your computer and use it in GitHub Desktop.
Save salma71/aa729893e5994c7c03ac74134cf829b8 to your computer and use it in GitHub Desktop.
def computer_move(board)
win_move(board) || block(board) || corner(board) || middle_corner(board)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment