Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Everything except non-integers are not tested.
Okay, let's get this straight: the kata idea is bad and it's hot garbage. You're inserting like 10 artificial, arbitrary, unrelated requirements to a simple
8kyu
task that is already a duplicate. That's not what a kata should be like.You actually have to return the total amount of money, not just the value of X. Description should be changed.
Simple Math Puzzle (Easy) #1
#2 in the series "Simple Math Puzzle"
The title is "Simple Math Puzzle (Easy) #1" - I take it that it is the first in a series? However, in the description it starts "states this.." that it is the second. This Kata is also not easy, at least how it stands now.
It is useful to show your initial conditions in the variable declarations. Except the route since what you have there is really more of a text description. I am also very confused if the travel is to be restricted only along x and y axis (no diagonals), though if you did include diagonals this would be very complex.
You should state more clearly in the Instructions what is the expected output. For example, minutes as an integer. You may also want your initial settings to be variables: start, dest and speed.
The instructions are not consistent, first you say
"If you started at (-25, -72), and has been traveling along the y-axis (the vertical line) for 32 minutes
Then, below the graph you say
"[You] started at (-25, -72);"
"Then [You] went to (0, -72);"
"Then [You] traveled [SOUTH] for 32 minutes;"
That second description sounds like 2 segments of travel, whereas at the top its only two, started at (-25, -72) and go south.
It also does not help when you refer to the direction of travel at one point as along y-axis but later as going South.
Test cases also needed in Test Driven Development (TDD). Or, blank that out so no tests are run
I was not able to complete this because it is too vague to follow
Technically, this is impossible.
undefined
is returned implicitly if there is noreturn
statement.I agree with Donald that the description could use some cleaning up generally.
No offence but this is a very poor kata! The goal of the kata isn't clear (
ISSUE no. 1
) and it's about computing one specific value which needs to be returned in specific format (ISSUE no. 2
).SUGGESTION
: You could parametrize your equations and make this kata a real kata.ISSUE no 3:
WTH? The description says nothing about what the actual goal is => it makes no sense to read it again.
Regards,
suic
Had some thoughts about how to improve the kata, but the best course of action may be to simply unpublish it.
This comment is hidden because it contains spoiler information about the solution