File size: 537 Bytes
e9fc2fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import json
with open('app/data/games_dataset.json') as f:
    data = json.load(f)

for rec in data[:10]:
    i = rec['input']
    o = rec['expected_output']
    print(f"=== {rec['id']} ({i['game_type']}) ===")
    for t in o['tasks']:
        desc = t['description'][:90]
        loc = t.get('location_hint','')[:70]
        pts = t['points']
        tm = t.get('time_limit_minutes','None')
        print(f"  desc: {desc}")
        if loc: print(f"  loc:  {loc}")
        print(f"  pts={pts} time={tm}")
        print()
    print("---")