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.
I have fixed this.
I have fixed all of this. Please make sure that it is still working.
I will unpublish the challenge until this issue gets fixed, because it suggests that some general idea behind the task is broken.
Examples in the description seem to do some confusing mental leap:
Why? How does "diff: 4" translate into "1 step" ?
Again, why? How does "diff: 10" translate into "2 steps" ?
The examples do not present example steps which can be taken to transform an unlucky ticket into a lucky ticket. Instead, they present some unclear relationship which does not seem to hold in general (see the issue below).
Besides fixing the reference solution, tickets of these type should be guaranteed in the random tests, and should be added to fixed/sample tests
Reference soultion sometimes returns wrong values, e.g.:
.../pass/return)retired
I've just checked it out, it seems fine, approved.
Yes indeed - I did the same copy and paste and never noticed the switched arguments until you pointed it out! Thanks!
@HerrWert I don't know if this is your issue or not, but I just copied and pasted my solution from the last kata (which was retired) and I found that he has switched the order of the
pcandoffsetarguments in the JNZP function from the last kata to this one. I was also having issues until I switched the argument order in my function signature.Is the first fixed test of JNZP correct? I followed the instructions, but kept getting an error and had to hard-code my way around it. All my other JNZP tests are passing.
Both issues fixed, with the run program throwing an error like the one above.
Okay, I have implemented this logic now. How should I output the error? Currently it says for example
f"Failed for program {program}: "JNZP Failed! Halting program (PC value incorrect)" should equal 6Loading more items...