File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ def run_simulation(self):
122
122
123
123
# `player` here and below refers to the player
124
124
# who moved into that particular state.
125
- if expand and (player , state ) not in self . plays :
125
+ if expand and (player , state ) not in plays :
126
126
expand = False
127
- self . plays [(player , state )] = 0
128
- self . wins [(player , state )] = 0
127
+ plays [(player , state )] = 0
128
+ wins [(player , state )] = 0
129
129
if t > self .max_depth :
130
130
self .max_depth = t
131
131
@@ -137,8 +137,8 @@ def run_simulation(self):
137
137
break
138
138
139
139
for player , state in visited_states :
140
- if (player , state ) not in self . plays :
140
+ if (player , state ) not in plays :
141
141
continue
142
- self . plays [(player , state )] += 1
142
+ plays [(player , state )] += 1
143
143
if player == winner :
144
- self . wins [(player , state )] += 1
144
+ wins [(player , state )] += 1
You can’t perform that action at this time.
0 commit comments