Move the bar with mouse. Do not let the apple touch the red line. Score 15 points to win. Good luck and have fun! Please give me feedback If there is anything I can fix. Also, if the apple does not move across the whole screen, Let it touch the line and then press space.
credit to jlcap2020 for the "You win!!" coding part.