zkan / tictactoe

Tic Tac Toe using Minimax and Reinforcement Learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

move function returns None

jorgesumle opened this issue · comments

jorge@jorge-All-Series:~/Código/Repositorios/tictactoe$ python tictactoe_minimax.py

New game!
Traceback (most recent call last):
File "tictactoe_minimax.py", line 100, in
t.play_game()
File "tictactoe_minimax.py", line 52, in play_game
self.board[move - 1] = char
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

Just merge the final code back to master branch. Please try again. @jorgesumle