Inspired by the football worldcup we came up with our own Python script to implement the goal line technology.
Rules of the challenge:
Tip: You will need to use the random Python library to generate random coordinates for the ball.
Our first attempt using Python Turtle
Our second attempt using the processing library
This version is slightly different. The ball follows the mouse pointer. It turns green if you score a goal or red if the ball is out.
You can do some research on the Internet to find out how the goal line technology really works. You will find out that there are different types of systems as explained on this page about goal line technologies.