From edf595221f241d477c4f0d87202e319c92e41fca Mon Sep 17 00:00:00 2001 From: habere-et-dispertire Date: Mon, 7 Aug 2023 14:20:17 +0100 Subject: [PATCH 1/4] Add scoreboard image --- exercises/darts/description.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exercises/darts/description.md b/exercises/darts/description.md index 75e3a85c92..11a14df31c 100644 --- a/exercises/darts/description.md +++ b/exercises/darts/description.md @@ -6,6 +6,8 @@ Write a function that returns the earned points in a single toss of a Darts game In our particular instance of the game, the target rewards 4 different amounts of points, depending on where the dart lands: +[Our dart scoreboard with values from a complete miss to a bullseye][darts-scoreboard] + - 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. - If the dart lands in the middle circle of the target, player earns 5 points. @@ -18,6 +20,7 @@ Write a function that given a point in the target (defined by its [Cartesian coo [darts]: https://en.wikipedia.org/wiki/Darts [darts-target]: https://en.wikipedia.org/wiki/Darts#/media/File:Darts_in_a_dartboard.jpg +[darts-scoreboard]: https://exercism-v3-icons.s3.eu-west-2.amazonaws.com/images/exercises/darts/darts-scoreboard.svg [concentric]: https://mathworld.wolfram.com/ConcentricCircles.html [cartesian-coordinates]: https://www.mathsisfun.com/data/cartesian-coordinates.html [real-numbers]: https://www.mathsisfun.com/numbers/real-numbers.html From f3215f03be9a2133eba1a7310e69aa310074313f Mon Sep 17 00:00:00 2001 From: habere-et-dispertire Date: Wed, 9 Aug 2023 13:54:13 +0100 Subject: [PATCH 2/4] Move scoreboard inline, add credit --- exercises/darts/description.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/exercises/darts/description.md b/exercises/darts/description.md index 11a14df31c..658b380795 100644 --- a/exercises/darts/description.md +++ b/exercises/darts/description.md @@ -6,7 +6,7 @@ Write a function that returns the earned points in a single toss of a Darts game In our particular instance of the game, the target rewards 4 different amounts of points, depending on where the dart lands: -[Our dart scoreboard with values from a complete miss to a bullseye][darts-scoreboard] +![Our dart scoreboard with values from a complete miss to a bullseye](https://exercism-v3-icons.s3.eu-west-2.amazonaws.com/images/exercises/darts/darts-scoreboard.svg) - 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. @@ -18,9 +18,14 @@ Of course, they are all centered at the same point — that is, the circles are Write a function that given a point in the target (defined by its [Cartesian coordinates][cartesian-coordinates] `x` and `y`, where `x` and `y` are [real][real-numbers]), returns the correct amount earned by a dart landing at that point. +## Credit + +The scoreboard image was created by [habere-et-dispertire][https://exercism.org/profiles/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 -[darts-scoreboard]: https://exercism-v3-icons.s3.eu-west-2.amazonaws.com/images/exercises/darts/darts-scoreboard.svg [concentric]: https://mathworld.wolfram.com/ConcentricCircles.html [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 +[inkscape]: https://en.wikipedia.org/wiki/Inkscape From 77e42c37a607164d0828dc6284ec6e184fc46cf5 Mon Sep 17 00:00:00 2001 From: habere-et-dispertire Date: Wed, 9 Aug 2023 13:56:43 +0100 Subject: [PATCH 3/4] Link typo --- exercises/darts/description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/darts/description.md b/exercises/darts/description.md index 658b380795..4b47489de0 100644 --- a/exercises/darts/description.md +++ b/exercises/darts/description.md @@ -20,7 +20,7 @@ Write a function that given a point in the target (defined by its [Cartesian coo ## Credit -The scoreboard image was created by [habere-et-dispertire][https://exercism.org/profiles/habere-et-dispertire] using [Inkscape][inkscape]. +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 From 7fe8e02679fa920866c3cb9d1c3c5b5772fb597c Mon Sep 17 00:00:00 2001 From: habere-et-dispertire Date: Thu, 17 Aug 2023 00:44:45 +0100 Subject: [PATCH 4/4] Switch to assets.exercism.org --- exercises/darts/description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/darts/description.md b/exercises/darts/description.md index 4b47489de0..5e1a9b2a2f 100644 --- a/exercises/darts/description.md +++ b/exercises/darts/description.md @@ -6,7 +6,7 @@ Write a function that returns the earned points in a single toss of a Darts game In our particular instance of the game, the target rewards 4 different amounts of points, depending on where the dart lands: -![Our dart scoreboard with values from a complete miss to a bullseye](https://exercism-v3-icons.s3.eu-west-2.amazonaws.com/images/exercises/darts/darts-scoreboard.svg) +![Our dart scoreboard with values from a complete miss to a bullseye](https://assets.exercism.org/images/exercises/darts/darts-scoreboard.svg) - 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.