fully implemented chance tree AI
This commit is contained in:
parent
cdf6df64a4
commit
616f3a8db5
3 changed files with 986467 additions and 4 deletions
12
TicTacToe_AI/Chancetree/game.py
Normal file
12
TicTacToe_AI/Chancetree/game.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from .main import Board
|
||||
|
||||
end = False
|
||||
board = [0, 0, 0,
|
||||
0, 0, 0,
|
||||
0, 0, 0]
|
||||
b = Board(barray=board)
|
||||
while not end:
|
||||
n = int(input('Enter field: '))
|
||||
b.board[n] = -1
|
||||
b.refresh()
|
||||
print(b)
|
||||
Loading…
Add table
Add a link
Reference in a new issue