Inspired by the football world cup we came up with our own Glowscript code to implement a visual demonstration goal line technology.
Rules of the challenge:
- Use Python to display the goal line on the screen as well as the two goal posts.
- Every time the program is executed it should draw the ball on a random position on the screen.
- The program should decide if there is a goal or not. There is a goal if the ball has passed the goal line and is between the two goal posts.
Visual Demonstration using Glowscript
In this goal line technology demonstration, the ball follows the mouse pointer. It turns green if you score a goal or red if the ball is out.
Read more
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.






