My snake game is now 58 bytes thanks to an idea I once had

5 months ago I had the idea of simplifying the branching tree by using the carry flag from operations in the next pre-branching instruction instead of branching twice (#40).

Sounds simple enough, but it turns out to be more complicated than it seems at first, and that’s why I abandoned it then.

However, this week I for some reason looked at the code again and thought about the exact same approach (#62).

After a lot of trial and error, I managed to get it working and to reduce two bytes (#63).

submitted by /u/Perfect-Highlight964
[link] [comments]


Posted

in

,

by

Tags:

Comments

Leave a Reply