I have executed your code and see that your computations are wrong. You need to redo the logic and come up with some new forumulas for computing the values you want.
Do you have the x,y and...
Type: Posts; User: Norm
I have executed your code and see that your computations are wrong. You need to redo the logic and come up with some new forumulas for computing the values you want.
Do you have the x,y and...
Can you explain what the problem is?
Do you have the x,y and width,height of each square?
Do you have the x,y of where the mouse was clicked?
Given those data points, you should be able to...
Try debugging the code by adding printlns to show the values of the variables as the program executes. For example show the x,y of the mouse click and the secret values and the x,y values
Take a...