How to calculate scores on an archery board?
The link below is a part of my game code about the archery board and how I put it in the main game loop. I tried searching online and I found that I most possibly need to use get_rect() of the circle to find the rect bounding the circle but I don't know how. I also found some online examples of using graphwin for the board so I kind of know what I need to code which is to find the mouse position, find the distance using math.hypot(x, y) but the thing is I'm not using graphwin so how do I apply these things to just pygame? I kind of know what I need but at the same time, don't as well. So I would really appreciate any advice/suggestion, it would be even better if you show me a sample code in the code playground. https://code.sololearn.com/cr6A6YDJtfXi/?ref=app