File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,10 @@ def __init__(self, lookup_table=None):
87
87
88
88
# rather than pass number of previous rounds to consider in as a separate variable, figure it out
89
89
# the number of rounds is the length of the second element of any given key in the dict
90
- self .plays = len (self .lookup_table .keys ()[0 ][1 ])
90
+ self .plays = len (list ( self .lookup_table .keys () )[0 ][1 ])
91
91
92
92
# the number of opponent starting moves is the lgnth of the first element of any given key in the dict
93
- self .opponent_start_plays = len (self .lookup_table .keys ()[0 ][0 ])
93
+ self .opponent_start_plays = len (list ( self .lookup_table .keys () )[0 ][0 ])
94
94
95
95
if self .opponent_start_plays == 0 :
96
96
self .classifier ['memory_depth' ] = self .plays
You can’t perform that action at this time.
0 commit comments