This commit is contained in:
Nicolai Czempin 2017-04-04 17:36:32 +02:00
parent 17b9bb7486
commit 74045a7615

View File

@ -55,8 +55,8 @@ class TicTacToeEnv(gym.Env):
def move_generator(self): def move_generator(self):
moves = [] moves = []
for i in range (9): for i in range (9):
if (self.state.state['board'][i]== 0): if (self.state['board'][i]== 0):
p = self.state.on_move p = self.state['on_move']
m = [p, i] m = [p, i]
moves.append(m) moves.append(m)