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.
my path is not correct. the total 1074 can be reached.
No I think the test is incorrect
Did you ever figure this out?
This comment is hidden because it contains spoiler information about the solution
I hear ya, done that before myself :)
Yes, this is the route I took at first and read that libraries should be kept out...
Totally works, but I thought the objective in Kata was to practice string parsing skills?
In your translation, I think you should do something like this on ProcessMove function:
if (MoveIsOutOfRange(tempPosition, selectionLength))
{
// Added IF - ELSE, it should consider RotationOn
if (RotationOn)
{
tempPosition = MovePositionToOppositeSide(selectionLength, lastValidPosition);
}
else
{
tempPosition = lastValidPosition;
}
}
Your translation is already starting to give problems.
You test randomly few times. You need to do it at least 40 times, not once. Please fix your random tests.
You generate grids which are too small and sometimes with few characters repeated. I would remove the random grid generation and focus only on random initial position and list of moves on some couple of big grids.
Check the comment from user
htalves
in the discourse section HEREWell if i had properly tested my random generating test it would have been easier lol :)
no, they still work for me.
remember one of the murphy's laws: you never change what is already working. :D
Refactored that part of the test. Tests still pass but for some reason when posting with my ipad it said publishing with failed tests. Anything fail for you?
As I said before: I have limited knowledge of C#; for the rest I think it should be fine.
My OCD is kicking in, going to refactor that test to make easier to read. Too many comments :/
Do you think the fighter grid selection is not as clear due to naming or because i moved the random generation into the test function parameter list?
Thank you again for the feed back :)
Loading more items...