Skip to content

Instantly share code, notes, and snippets.

@AMiller42
Created October 27, 2021 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AMiller42/aa31a990190857694e00c802543e61a6 to your computer and use it in GitHub Desktop.
Save AMiller42/aa31a990190857694e00c802543e61a6 to your computer and use it in GitHub Desktop.
for loop in range(len(self._loops)):
for value in range(3):
if self._loops[loop][2][value] != self._tape[self._loops[loop][1]][value]:
self._loops[loop][3].append(self._tape[self._loops[loop][1]][value])
changed = True
if changed:
self._loops[loop][2] = self._tape[self._loops[loop][1]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment