Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion exercises/darts/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@

Given a point in the target (defined by its [Cartesian coordinates][cartesian-coordinates] `x` and `y`, where `x` and `y` are [real][real-numbers]), calculate the correct score earned by a dart landing at that point.

~~~~exercism/note
To find which circle a dart falls in, you can compute the [distance][distance-formula] from the point to the center (0, 0) and compare it against each circle's radius.
~~~~

## Credit

The scoreboard image was created by [habere-et-dispertire][habere-et-dispertire] using [Inkscape][inkscape].

[darts]: https://en.wikipedia.org/wiki/Darts
[darts-target]: https://en.wikipedia.org/wiki/Darts#/media/File:Darts_in_a_dartboard.jpg
[concentric]: https://mathworld.wolfram.com/ConcentricCircles.html
[concentric]: https://en.wikipedia.org/wiki/Concentric_objects
[distance-formula]: https://www.mathsisfun.com/algebra/distance-2-points.html

Check failure on line 32 in exercises/darts/description.md

View workflow job for this annotation

GitHub Actions / Lint markdown files

Link and image reference definitions should be needed

exercises/darts/description.md:32:1 MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "distance-formula"] [Context: "[distance-formula]: https://ww..."] https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md053.md
[cartesian-coordinates]: https://www.mathsisfun.com/data/cartesian-coordinates.html
[real-numbers]: https://www.mathsisfun.com/numbers/real-numbers.html
[habere-et-dispertire]: https://exercism.org/profiles/habere-et-dispertire
Expand Down
Loading