Skip to content

Instantly share code, notes, and snippets.

@salma71
Created March 4, 2018 00:09
Show Gist options
  • Save salma71/cc38a2489acfbef8f34f08dffff2920e to your computer and use it in GitHub Desktop.
Save salma71/cc38a2489acfbef8f34f08dffff2920e to your computer and use it in GitHub Desktop.
def move(board)
#center position
if !board.taken?("5")
"5"
else
computer_move(board)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment