Jul 21, 2024
pipe_IND = 0
len(birds) > 0
len(pipes) > 1
pipe_IND
accordinglybird.move()
bird.fitness += 0.1
each frameoutput = net.activate()
bird.Y
abs(bird.Y - pipe[pipe_IND].height)
(top pipe distance)abs(bird.Y - pipe[pipe_IND].bottom)
(bottom pipe distance)if output[0] > 0.5 then bird.jump()
pickle