We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aabddda commit c5a1b8bCopy full SHA for c5a1b8b
exercises/darts/canonical-data.json
@@ -1,6 +1,6 @@
1
{
2
"exercise": "darts",
3
- "version": "2.0.0",
+ "version": "2.1.0",
4
"comments": [
5
"Return the correct amount earned by a dart landing in a given point in the target problem"
6
],
@@ -77,6 +77,15 @@
77
},
78
"expected": 10
79
80
+ {
81
+ "property": "score",
82
+ "description": "A dart lands right in the center of the dart board is scored in the inner circle",
83
+ "input": {
84
+ "x": 0,
85
+ "y": 0
86
+ },
87
+ "expected": 10
88
89
90
"property": "score",
91
"description": "A dart whose coordinates sum to > 5 but whose radius to origin is <= 5 is scored in the middle circle",
0 commit comments