For the interactive mode: - Click and drag to create the initial slice. Press down outside of the circle and drag your mouse to a point inside of the circle, then release. Then, click on the point inside the circle and drag your mouse to a point outside of the circle, then release. - Click and drag the points to change the shape/size of the slice. - The points that start on the outside can not go inside the circle, and the points that start on the inside can not go outside the circle. For the game mode: - Click and drag to slice a piece of pie. Press down outside of the pie and drag your mouse to a point inside of the pie, then release. Then, click on the point inside the pie and drag your mouse to a point outside of the pie, then release. - The closer the area of your slice is to what Timmy wants, the better your slice is.
This is my entry for @idtechcodingclass 's Pi Day contest. The program will always calculate the slice that is pointed, not the pac-man shaped slice (the slice that is more "slice-like", so to speak). I wanted to limit myself to calculating the area in a single line with only the arithmetical operators (i.e., addition subtraction, multiplication, division, and all the operators in the "abs of" block), and I think I was successful - When given two points on a circle, a point inside the circle, and the radius of the circle, the line labeled "very massive line" can calculate the area of the slice.