示例#1
0
def test_place_numbers():
  return pathfind.place_numbers((1, 0), world_array, ['.', '*', '!'], 'a') 
示例#2
0
def profile_place_numbers():
  for n in range(0 ,800000):
    l, p = create_random_list()
    #print "Starting:\n", util.array_to_string(l)
    #print "Changed point:", p
    pathfind.place_numbers(p, l, ['.', '*', '!', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k'], None)