6 kyu
Save the Spice Harvester (Dune Universe)
326 of 810docgunthrop
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
python new test framework is required. updated in this fork
Approved
PHP:
Fixed tests have this test, where the harvester can be saved by carryall at the same moment as the harvester can be eaten by worm, but the description says nothing about it.
PHP: There are no "fixed tests" in "Sample Tests"
Update to JS
Node 18.x
Thanks 🖖
"Sample test" of golang is broken.
line 21 says ::
In this case, inner closure pickups variable
i
anddat
that will be changed by for loop. In pactice, test suit will run afterdat
andi
is bounded to last test case, and then, allExcept
function will called with same test case.To fix this, this should be modified as:
Great kata!
Loved seeing Dune show up. I enjoyed this one. I had to fall back on that high school Algebra I thought I'd never have to use (thanks Mr. Mitchell!).
"Fear is the mind-killer."
Looking forward to seeing Villeneuve's take on it later this year. "Long live the fighters!"
I've seen a few still pics from production, and for what those are worth it looks like it could actually be done well. I'm pleased to hear he's splitting it into two films, though if those together only cover the first book, I'm curious about where the breakpoint would be.
Wery intresting kata.Dune is my favorite universe! The Spice must flow!!!
Elixir and Go translations published.
C# Translation added.Please review and approve~
Approved, thanks! 🖖
It's such a shame that Rakis is just a burnt planet now...
This comment has been hidden.
The user who wrote the Rust translation appears to have deleted their account. I've removed the Rust translation.
Thanks. Great kata, though. I smiled and was super excited when I saw it. Sad that it didn't work out.
Awesome kata! Interesting, well explained and great footage! :)
Added Java Translation
Data takes form of 2D array.
EDIT - Adjusted Random Testing to be consistent with original Kata.
Approved, thanks!
Added Rust translation.
Several of the types had to be changed (a struct for the data, tuples instead of arrays, etc.) but the initial solution and example test cases should suffice to make the differences clear.
Thanks, approved.
Python translation published.
Approved
PHP Translation Kumited - please carefully review and approve :D
Thanks
@donaldsebleung
for submitting your translation; it looks good but please reduce the random tests from 500 to 50 to keep consistent with the original kata.Thanks
@docgunthrop
for the feedback, the Kumite has been updated as you requested :)@donaldsebleung
thanks again for your translation; it is now approved!The reference solution only checks if the carryall can be there (and lift, &c) before or at the exact moment when the worm gets there. And the tests don't catch this. The description seems written to imply the carryall has to get there first (if only by ε).
Also, the return value when giving up on the harvester is different in the description and in the tests.
Thanks
@JohanWiltink
for your solution and constructive feedback. I've made the corrections to the kata's output so it matches what is stated in the Description. Also added a test case for simultaneous arrival times. If there is no other issue, I'll go ahead and mark this as resolved.Yep, looks resolved. :]
Thanks for checking out my first published kata. If you find any issues or bugs, go ahead and post in this Discourse section and I'll look into fixing them.
Great first Kata - I thoroughly enjoyed it <3 (definitely better than my first Kata :p) Keep up the good work :D
EDIT: BTW @docgunthrop would you mind re-publishing the Kata with
Node v6.11.0
(and/orNode v0.x.x
) selected? It's currently only completable inNode v8.x.x
which is not yet supported on the main site, cheers :DThanks for the words of encouragement,
@donaldsebleung
! As suggested, I've republished it with Node v6.11.0, so it should now work with that version as well as with Node v8.1.3.