File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/ReinforcementLearningEnvironments/src/environments/examples Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ RLBase.legal_action_space(env::TicTacToeEnv, p) =
58
58
59
59
function RLBase. legal_action_space_mask (env:: TicTacToeEnv , p)
60
60
if is_win (env, CROSS) || is_win (env, NOUGHT)
61
- zeros ( false , 9 )
61
+ falses ( 9 )
62
62
else
63
- vec (view ( env. board, :, :, 1 ) )
63
+ vec (env. board[ :, :, 1 ] )
64
64
end
65
65
end
66
66
135
135
136
136
function get_tic_tac_toe_state_info ()
137
137
if isempty (TIC_TAC_TOE_STATE_INFO)
138
- @info " initializing state info..."
138
+ @info " initializing tictactoe state info cache ..."
139
139
t = @elapsed begin
140
140
n = 1
141
141
root = TicTacToeEnv ()
@@ -160,7 +160,7 @@ function get_tic_tac_toe_state_info()
160
160
end
161
161
end
162
162
end
163
- @info " finished initializing state info in $t seconds"
163
+ @info " finished initializing tictactoe state info cache in $t seconds"
164
164
end
165
165
TIC_TAC_TOE_STATE_INFO
166
166
end
You can’t perform that action at this time.
0 commit comments