Skip to content

Commit

Permalink
Correct grammatical, ortographic, and style mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
ramadis committed Oct 9, 2018
1 parent 1b5e325 commit 9b5137c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions exercises/target/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
"version": "1.0.0",
"cases": [
{
"description": "Retun the correct amount earnt by a dart landing in a given point in the target problem.",
"description": "Return the correct amount earned by a dart landing in a given point in the target problem.",
"cases": [
{
"property": "result",
"description": "A dart lands outside the targetOnly a single book",
"description": "A dart lands outside the target",
"input": {
"x":15.3,
"y":13.2
"x": 15.3,
"y": 13.2
},
"expected": 0
},
{
"property": "result",
"description": "A dart lands just in the border of the target",
"input": {
"x":10,
"x": 10,
"y": 0
},
"expected": 1
Expand All @@ -27,35 +27,35 @@
"property": "result",
"description": "Input is not a number",
"input": {
"x":"WRONG",
"y":10
"x": "WRONG",
"y": 10
},
"expected": null
},
{
"property": "result",
"description": "A dart lands in the middle circle",
"input": {
"x":3,
"y":3.7
"x": 3,
"y": 3.7
},
"expected": 5
},
{
"property": "result",
"description": "A dart lands right in the border between outside and middle circles",
"input": {
"x":0,
"y":5
"x": 0,
"y": 5
},
"expected": 5
},
{
"property": "result",
"description": "A dart arrives in the inner circle",
"input": {
"x":0,
"y":0
"x": 0,
"y": 0
},
"expected": 10
}
Expand Down
4 changes: 2 additions & 2 deletions exercises/target/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Write a function that returns the earned points in a Darts game.
[Darts](https://en.wikipedia.org/wiki/Darts) is a game where players
throw darts to a [target](https://en.wikipedia.org/wiki/Darts#/media/File:Darts_in_a_dartboard.jpg).

In our particular instance of the game, the target rewards with 4 different amount of points, depending on where the dart lands:
In our particular instance of the game, the target rewards with 4 different amounts of points, depending on where the dart lands:

* If the dart lands outside the target, player earns no points (0 points).
* If the dart lands in the outer circle of the target, player earns 1 point.
Expand All @@ -12,4 +12,4 @@ In our particular instance of the game, the target rewards with 4 different amou

The outer circle has a radius of 10 units (This is equivalent to the total radius for the entire target), the middle circle a radius of 5 units, and the inner circle a radius of 1. Of course, they are all centered to the same point (That is, the circles are [concentrics](http://mathworld.wolfram.com/ConcentricCircles.html)).

Write a function that given a point in the target (defined by its `real` cartesian coordinates `x` and `y`), returns the correct amount earnt by a dart landing in that point.
Write a function that given a point in the target (defined by its `real` cartesian coordinates `x` and `y`), returns the correct amount earned by a dart landing in that point.

0 comments on commit 9b5137c

Please sign in to comment.