示例#1
0
def correlation_data():
    start_bird_y = randint(-199, 199)
    rand_density = randint(1, 9)
    obstacle_diameter = randint(10, 50)
    obstacle_speed = -randint(1, 5)
    fall_speed = -randint(10, 30)
    proximity = randint(2, 30)
    flappy_game = Game(200, -200, fall_speed, 30, obstacle_diameter, 1,
                       rand_density, obstacle_speed, 0, start_bird_y,
                       proximity, True)
    flappy_game.game_main_loop()
示例#2
0
def colision_coordinates_plot():
    flappy_game = Game(200, -200, -5, 30, 20, 1, 1, -3, 0, 0, 5, True)
    flappy_game.game_main_loop()
示例#3
0
def time_alive_proximity_threshold():
    proximity = randint(1, 70)
    flappy_game = Game(200, -200, -5, 30, 20, 1, 1, -3, 0, 0, proximity, True)
    flappy_game.game_main_loop()
示例#4
0
def time_alive_box_plot():
    flappy_game = Game(200, -200, -5, 30, 20, 1, 1, -3, 0, 0, 5, True)
    flappy_game.game_main_loop()
示例#5
0
def time_alive_per_obstacle_spawn_time():
    rand_density = randint(1, 8)
    flappy_game = Game(200, -200, -5, 30, 20, 1, rand_density, -3, 0, 0, 5,
                       True)
    flappy_game.game_main_loop()