This is my Stem Fair project for the year 2024-2025, the Polygon AI! Highly advised to stop it and use the mouse for inputs if you are just experimenting around, seeing if it works. M: get value of current mouse position N: add the current mouse position to the x and y list 9: zoom in 0: zoom out left, right, up, and down arrows: move origin in arrow direction a: give camera x y and zoom d: delete the specified point from memory r: add random points, but you have to press c between each added point f: find the number identification of the closest point (will be highlighted), shown in bottom left, must press t (thank you) to exit the loop. The make guess guess is the guessed probability of being a 1 in a range between 0 and 1 The green shape is the 1s, the red shape is the 0s Errors that may occur: 1: does not accept your answer - did not put a valid answer.(number for x and y, 1 or 0 for output, Y or N for continuing) 2: the point is exactly on the line of an edge and so it cannot determine if it is in or not - not usually a problem, but if it is, change the value slightly, down to 1/10^15 3: the shape will not add the point - shouldn't ever happen, delete that point and try again, if it does not work, please comment, save the lists, and take a screenshot of the screen, please please please. Warning: shapes may become distorted and cross over itself, if any point is off the screen, this project uses the pen tool, not like actual slopes and just drawing at that angle.
100% by me, code and concept, and 90% of the math by me. The only function that was copied was the function for where two lines intersect from wikipedia's page on intersecting lines.