This commit is contained in:
jane 2020-11-10 19:46:12 -05:00
parent 6e86047aa8
commit c69f0780e7
1 changed files with 3 additions and 1 deletions

View File

@ -127,8 +127,10 @@ def pat(index, tick, previous_values):
args = this.pattern[i]['instruction']['args']
if this.instructions[name] != None:
jump = apply(i, targets, args, this.instructions[name])
print("{} {} {}".format(jump, i, len(this.pattern)))
print("{} {} {} {} {}".format(jump, i, len(
this.pattern), jump != i, jump <= len(this.pattern)))
if jump != i and jump <= len(this.pattern):
print("jumping to {}".format(jump - 1))
i = jump - 1
r = this.values["r"]
g = this.values["g"]