|
|
|
|
|
by primaryobjects
4514 days ago
|
|
Neat. You could also probably do this with a genetic algorithm. Thinking out loud here: - Have a neural network with 6 inputs for: - player x
- player y
- acceleration speed
- acceleration direction
- next pipe mid-point x
- next pipe mid-point y
- Two outputs of 0 or 1 for click or no-clickThe fitness score would be how close the player is to the pipe mid-point. Hopefully, this would cause the bird to stay as close as possible to fly between the pipes. The genetic algorithm would select the best neural network that knows when to flap based on the current input state. |
|