+ 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.

1st Mar 2018, 10:27 PM
Sebastian Keßler
Sebastian Keßler - avatar
5 ответов
+ 3
Thanks for the hint.
1st Mar 2018, 10:45 PM
Sebastian Keßler
Sebastian Keßler - avatar
+ 1
After all there should be a solution of the problem: https://code.sololearn.com/cgDOxuSmJupA/?ref=app
3rd Mar 2018, 2:43 PM
Sebastian Keßler
Sebastian Keßler - avatar
+ 1
With chance-of-scoring by percentile implemented. https://code.sololearn.com/cp4yvd77Y14c/?ref=app
7th Mar 2018, 5:44 PM
Elaow
Elaow - avatar