Use the cursor to control the movement of the pen. To designate a line press 's' to indicate the start, and 'f' to indicate the finish. The distance between the two points will be displayed.
This is not a game just an example of using math. distance = sqr root (( vertical * vertical )+(horiz * horiz)) Google 'Pythagorean theorem', if you would like to learn more.