JRQi commited on
Commit
455ee26
1 Parent(s): 30ca85c

Update game3.py

Browse files
Files changed (1) hide show
  1. game3.py +1 -3
game3.py CHANGED
@@ -20,9 +20,7 @@ def read3(num_selected_former):
20
 
21
  min_len = 5
22
 
23
- tokens = [i[0] for i in interpretation]
24
- tokens = tokens[1:-1]
25
- while len(tokens) <= min_len or '\\' in text['text'] or '//' in text['text']:
26
  index_selected = random.randint(0,len(content)/2-1)
27
  text = eval(content[int(index_selected*2)])
28
  res_tmp = [(i, 0) for i in text['text'].split(' ')]
 
20
 
21
  min_len = 5
22
 
23
+ while len(text['text'].split(' ')) <= min_len or '\\' in text['text'] or '//' in text['text']:
 
 
24
  index_selected = random.randint(0,len(content)/2-1)
25
  text = eval(content[int(index_selected*2)])
26
  res_tmp = [(i, 0) for i in text['text'].split(' ')]