10 lines
216 B
Python
Executable File
10 lines
216 B
Python
Executable File
from minimax import Actions
|
|
|
|
|
|
def player(state):
|
|
actions = Actions(state)
|
|
choice = -1
|
|
while choice not in actions:
|
|
choice = int(input("Pick a spot between 1-9.> ")) - 1
|
|
|
|
return choice |