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.
Sorry, I'm quite newbie'ish in the site :(
Spoiler flag!
This comment is hidden because it contains spoiler information about the solution
What I did is move the task of increasing the IP out of each instruction. Then in what would be your "process" method, I would wrap that self.instructionParser... inside an if, like this:
if (!self.instructionParser...) : self.IP += 1
And only the jnz instruction returns true (I called this "Hold IP"). Also, in the jnz method I think you're supposed to handle both constants (ints) and registers, so I defined another method valueOf(x) that returns x if it is a number, or the value of your self.regis[x], if it is alpha (isNaN, actually).
I did not process (split) the instructions array in advance, although I think that's more up to personal likes :)
Yes. This I exploited by using an easy RegExp. Better tests more than more tests.