7 kyu
Blood Moon
544 of 1,186sazzadshopno
Loading description...
Mathematics
Geometry
Algorithms
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.
It is not really stated that C is the mid point of AB.
Fixed with Java translation.
https://www.codewars.com/kumite/671651016c01557ff08dbb9e?sel=671651016c01557ff08dbb9e <<< Java translation ¯_(ツ)_/¯
This comment has been hidden.
No, you're wrong. Not a kata issue.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This is dumb and also wrong
python new test framework is required. updated in this fork
Approved
NASM translation.
OMG, I did so much work for such a simple formula! 🙈 If only I had know before digging out pen, paper and very dusted math skills. 🤷
Good kata for highlighting that some situations require problem solving skills rather than plain coding skills.
dumb kata, no programming skills needed
^ Alan's mom, afraid of blood moon jaguar
computers are mathematical by default, so you could actually cut the kata creator some slack. in other words, the kata is in the coder's mathematical wheelhouse.
dumb kata +1
Coffeescript Translation (author inactive)
Approved :)
This comment has been hidden.
Approved :)
C# Translation (author inactive)
Approved :)
Interesting style of kata. Another person posted that this seems more like a piece of maths homework than a programming challenge. Now, some of us who program have a greater natural interest in things like languages, mythology, anthropology and symbolic systems. I have to say that the story of the jaguar and the Incan blood moon was almost enough to make me quit me my programming session and spend the entire evening chasing up ancient myths and legends on the Wikipedia!
Fortunately I'm too old and dogged for that, but it was a close call. Thanks for the intriguing question.
This comment has been hidden.
Very clever bit of geometry. So simple in the end.
This feels a lot like math homework and not so much programming.
I am quite confused with the answer. Shouldn't the answer contain a Math.PI in itself, since it is a necessary value to calculate area of a circle?
The portions with the Math.PI end up cancelling out in this particular question. Try working it out with paper and pencil and you'll see.
Python translation
Ruby translation
Please approve!
nope. See there.
Please approve translations
Please approve translations
See B4B's comments on both.
.
Thx Steffan. I will amend.
The translations were rejected after not being fixed for months.
Values should be compared for approximate equality.
Since i never used it, can i have an example case, please?
Test.assertApproxEquals(actual, expected)
Thank you, Fixed.
Nope:
Check that now please.
I haven't done any rounding and passed the tests, should that note be there?
Removed both the notes (the one about
pi = acos(...)
was useless).