Finished Move script (if it is correct)

This commit is contained in:
Thomas Kwashnak
2022-01-13 08:36:27 -05:00
committed by GitHub
parent 4485faa7e3
commit b887d29930

View File

@@ -67,10 +67,15 @@ def move(board):
if difference != 2 and difference != 18:
return False
center = (end + start) / 2
if not board[center] == '!':
return False
board[start] = 'O'
board[center] = 'O'
board[end] = '!'
return True
except:
return False
return True
def main():
# if input("Do you want instrunctions?\n").lower().startswith("y"):