Actually return the generated moves
This commit is contained in:
parent
74045a7615
commit
8bed7b4aae
@ -55,8 +55,10 @@ class TicTacToeEnv(gym.Env):
|
||||
def move_generator(self):
|
||||
moves = []
|
||||
for i in range (9):
|
||||
|
||||
if (self.state['board'][i]== 0):
|
||||
p = self.state['on_move']
|
||||
m = [p, i]
|
||||
moves.append(m)
|
||||
return moves
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user