about | help | code help+videos | done | prefs |
check_click
Each square is 100 by 100 in width and height in a 3x3 grid. The function check_click will be given mouseX and mouseY coordinates. Your goal is to return which grid number was clicked. Example check_click(50,50) --> 0 check_click(124,90) --> 1 check_click(222,70) --> 2 check_click(32, 110) --> 3 check_click(151,178) --> 4 check_click(201,178) --> 5 check_click(201,78) --> 6 check_click(278,199) --> 7 check_click(250,250) --> 8 check_click(50, 50) → 0 check_click(124, 90) → 1 check_click(222, 70) → 2 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 102 Post-solution available
Copyright Nick Parlante 2017 - privacy