Greetings everyone,
So I posted earlier a similar problem which I wrote in python, but now after accomplishing that, I think ill try to write it up in C++. The link to the original question is here. If there are any other questions or if you need any more information on the problem feel free to ask if it is not posted on that link.
So since there is a wall of text on that first post regarding the guidelines I used, ill try to keep it short here.
I will have the program throw 3 darts at the board with the rings 3" apart up to 15", the radius of the smallest circle (the bullseye) being 3". After the 3 darts are thrown the score is added up to figure out the first players score. Score is determined by the values of the x,y coordinates of the circle. Then player 2 will throw 3 darts and same will happen. In Python I had to read in from a file called games.txt but in C++ I can just use cin >> to read from the terminal. I am going to have a score function take two float arguments and return an int value. Of course I will use the #include<cmath> at the top so I can use the sqrt function. I also read about an algorithm called Newtown's function which is used to calculate the square root. Does my process sound good, or am I on the right track? Any comments and help would be greatly appreciated.