Skip to content

Commit

Permalink
Revert "work in progress code for ai upgrade"
Browse files Browse the repository at this point in the history
This reverts commit 78ae345.
  • Loading branch information
DarthMDev committed Dec 7, 2016
1 parent 396f5e4 commit ddd05d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tic_tac_toe.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ def single_player():
random.seed() #give a random generator
opponent = random.randint(0, 8)
if board[opponent] != 'o' and board[opponent] != 'x':
board[opponent] = 'o'
board[opponent] = 'o'

#Check
if checkAll('o') == True:
if checkAll('o') == True:
print 'O WINS!'
break
break
Expand Down

0 comments on commit ddd05d0

Please sign in to comment.