コード例 #1
0
ファイル: perf_test.py プロジェクト: kvas-it/tron_battle
def ray_probe_box10_100():
    """Ray probe inside the box, width = 10."""
    t = tg_box1(tg())
    for i in xrange(100):
        t.ray_probe(t.coords2index(15, 10), t.DIRECTIONS['RIGHT'], 10)
コード例 #2
0
ファイル: perf_test.py プロジェクト: kvas-it/tron_battle
def bfs_probe_box():
    """BFS probe from the box in the center."""
    t = tg_box1(tg())
    t.bfs_probe(t.coords2index(15, 10))