-
-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
darts: Port Darts Exercise #1019
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are missing an entry to config.json
.
Where do you see it fitting?
It may be a while before we bring this in, @F3PiX what do you think as well?
Thanks for taking a look, @kotp! Didn't realize it required an entry in In terms of where it fits in, I'm not sure. In the JavaScript track it's rated as a difficulty "3" but has no |
That should help you out. More information is here, specifically the README.md. |
Use your best guess, as you have created the proof of concept exercise... |
Thanks for the guidance, @kotp! I've added an entry to |
10.0.. => 0, This line (22) is causing a problem with the version of Ruby being ran. Ensure that the tests are Ruby 2.5 friendly. |
Co-Authored-By: Victor Goff <[email protected]>
That seems to have done it! Thanks, @kotp! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some suggestions for the "copy".
Let me know if you think the changes are worthwhile... otherwise I would approve it as is. If the changes are not necessary, let me know and I will approve as is.
exercises/darts/README.md
Outdated
|
||
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 [concentric](http://mathworld.wolfram.com/ConcentricCircles.html)) defined by the coordinates (0, 0). | ||
|
||
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. | |
Write a method 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. |
Cartesian is a name, and capitalized. The use of a comma is consistent and works because without the explanation would make a complete sentence itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change from "function" to "method" is a local Ruby change, and not suitable for the Readme in problem-specifications, while the missing comma should be suggested at the original source.
exercises/darts/README.md
Outdated
* If the dart lands in the middle circle of the target, player earns 5 points. | ||
* If the dart lands in the inner circle of the target, player earns 10 points. | ||
|
||
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 [concentric](http://mathworld.wolfram.com/ConcentricCircles.html)) defined by the coordinates (0, 0). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 [concentric](http://mathworld.wolfram.com/ConcentricCircles.html)) defined by the coordinates (0, 0). | |
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. They are all centered to the same point (That is, the circles are [concentric](http://mathworld.wolfram.com/ConcentricCircles.html)) defined by the coordinates (0, 0). |
The "Of course, " can be removed as we are providing the course.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be suggested at the source, rather than locally here.
I entirely agree with all your comments. The reason I didn't do such proofreading on my own is that I generated the README from the problem specifications. Should I make changes to the README here, just for the Ruby implementation of the exercise, or should I propose the changes on the problem specifications description: https://github.com/exercism/problem-specifications/blob/master/exercises/darts/description.md ? |
You are right. The suggestions should be at the source. The changes here are going to be the Ruby specific change of I know when the source is changed and we re-generate, that this will be "incorrect" again. |
Hmm yeah this is an interesting nuance. I'm inclined not to make the change here since, as you pointed out, it will get reverted back to So maybe it's a losing battle to try to keep the terminology different between Ruby and other languages and they should just all be called Anyway, I'd be happy to propose the other (imo more important) suggestions you make at the source, which should be universally helpful regardless of programming language. Does that sound alright? EDIT: I just read a little further in the |
Yeah, I am for making the changes local. As we work on the content for the Ruby track, and update, we will notice when things slip (or not) and have regressions, but hopefully we will note them, perhaps at some point make some changes that help us with track specific language so it is less manual, less likely to revert. |
Great! I've just made the wording changes. What do you think? |
This is my first exercise port! 👋 I think I followed the written instructions correctly, but one thing to note is that I, personally, came to doubt the educational value of this particular exercise as I worked through it. I'm submitting this PR in case others find it valuable but if someone wants to make an editorial decision to exclude this exercise, I would definitely not protest! 😄