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.
This comment is hidden because it contains spoiler information about the solution
the description could mention that it does not matter whether our path is open or closed (a closed tour is one in which the knight can reach the starting position from the final position)
This one rattled my mind for days! I wanted to solve with no consultations on the problem. This led me to a brute force approach which, predictably, failed for lack of time and resources. Then I looked a bit for hints and came across Warnsdorrf's rule. Things turned around quickly! So, my only suggestion on this kata would be to hint that this requires a strong grasp on solving with algorithms and heuristics, which we might need to research.
Fun kata, thank you. I was able to solve this as a particular case of a more general problem.
A couple of suggestions to improve the description:
Alhamdulillah, solved it again, this time with no obscured fail!! found the problem and modified it! and crossed all obstacle you set!!
Thanks!
you'll find stuff about knight's tour all over the place on the internet. For more precise stuff, you can search for the name I used in my python solution:
..._DP
Ya, i just checked, and on 6X6 all the other 35 points make a tour with my piece of code but not (2, 2), so i guess i am extremely lucky!! anyway i just noticed the way i followed, actually just ment to make a successful tour not necessary from any point of start, so as this kata is actually over for me, can you please refer me to any material (video or journal) by learning which i can make someting that will solve any knight's tour, i mean from any board or any point, or atleast code better than my code!!(i am not yet very good at reading others code). Thanks for solving the issue, and also for noticing and checking my code.
.
I updated the tests in python. Your solution atually times out in some situations x6x at 2,2, apparently)
Sample tests are now also in the full test suite, and I added some random tests.
works fine on my side
is there anything wrong with sample tests in Python?
sample tests timesout my solution for the kata,
though i've already passed the kata,would you please take a look?
i mean i was confident so i tried the attempt button anyway,
but imagine someone stuck there and unnecessarily changing their code!
this is hard
The example tests for JS are broken, but it is funny because the author actually wrote that as a comment in there XDD
A challenge version someone? :)
Loading more items...