From 74045a7615e7d8efa9e03d84055b4e28c4487e3d Mon Sep 17 00:00:00 2001 From: Nicolai Czempin Date: Tue, 4 Apr 2017 17:36:32 +0200 Subject: [PATCH] fix typo --- gym_tic_tac_toe/envs/tic_tac_toe_env.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gym_tic_tac_toe/envs/tic_tac_toe_env.py b/gym_tic_tac_toe/envs/tic_tac_toe_env.py index 8af4384..5c374aa 100644 --- a/gym_tic_tac_toe/envs/tic_tac_toe_env.py +++ b/gym_tic_tac_toe/envs/tic_tac_toe_env.py @@ -55,8 +55,8 @@ class TicTacToeEnv(gym.Env): def move_generator(self): moves = [] for i in range (9): - if (self.state.state['board'][i]== 0): - p = self.state.on_move + if (self.state['board'][i]== 0): + p = self.state['on_move'] m = [p, i] moves.append(m)