Avoid falling balls (DQN)
This is an app that demonstrates the process of learning how to avoid a ball using DQN. The agent receives information from sensors and receives more rewards the longer it stays alive.

How to try it
Pressing the start button will make the cube move left and right to avoid the ball. If it gets hit by the ball, the next round will start. If you repeat this process, you will gradually be able to survive longer, and the changes are shown at the bottom of the screen. You can check it in the graph. If you check manual control, you can manually control it with the A and D keys on the keyboard.