Click the green flag and with you cursor control the bat and click when you think the bat will hit the ball coming at you, but remember there are only 20 balls total. way to cheat is dragging the bat very close to the pitcher and clicking continuously but then you get more than 20 balls. It will keep track of how many balls you have and have your latest batting average. Also you can see your high score which is just the best batting average you have got. Try your best and have fun!!
Thanks to Google CS First teaching me how to code this project.