+ 15
[challenge] how to checkout darts
Write a program that takes the current score in a darts game and calculates the throws to checkout. The board consists of a circle of 20 segments numbered from 1 to 20. Each segment has two parts that count double respectly treble. In the middle there is a ring counting 25 points and the bullseye with 50 points. For example: score = 67 darts 1 = 25 darts 2 = 42 (treble 14) By the way: for every score below 170 checkout is possible with 3 darts.
5 Respostas
+ 3
Thanks for the hint.
+ 1
After all there should be a solution of the problem:
https://code.sololearn.com/cgDOxuSmJupA/?ref=app
+ 1
With chance-of-scoring by percentile implemented.
https://code.sololearn.com/cp4yvd77Y14c/?ref=app