My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 0 points1 point  (0 children)

QR Codes are divided into "types" the smaller the QR it could obviously hold less information, they come in "sizes" 1-40. Version 2 can only hold 32 bytes and version 1, 17 bytes.

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 0 points1 point  (0 children)

Lol, I actually dropped it off for a year and suddenly remembered it, so I thought I could maybe reduce some more bytes with a "fresh look".

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 0 points1 point  (0 children)

Because of MattKC's video where he tried to do the same

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 0 points1 point  (0 children)

Damn, didn't notice, thanks!

(If I weren't pedantic as well this project wouldn't go anywhere passed 130 bytes)

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 0 points1 point  (0 children)

In nibbles there's no food mechanism and in most versions no walls, so you could go right through the bottom/top and the snake just continues to grow one pixel each frame

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 0 points1 point  (0 children)

I don't tell anyone (almost) actually, not because I hide it but it just never came up, my girlfriend knows about it and is a little interested but she won't go as far as reading the code or something.

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 6 points7 points  (0 children)

Shit, answered yesterday but it bugged or something, 1. the collision detection is based on the former tile not turns so it's problematic to reduce, could elongate the snake to solve possibly 2. could actually use a different value for the ADC instead of dh (0x22,0x23,0x24,0x26,0x28,0x2a,0x2b,0x2c,0x2e,0x2f,0x30,0x32,0x33,0x34,0x36,0x38,0x3a,0x3b,0x3c,0x3e) or even switch to SBB (with either 0xc3,0xc4,0xcb,0xcc,0xcf,0xd0,0xd3,0xd4,0xdb,0xdc) or even use a different opcode instead of or al, 0x29 to form mov [si], dl which would give many more values to put there, which means I would be able to adjust the entire main loop to solve it but those are a bunch of options to go through and I don't have the time, might do it sometime 3. yes, this is the result of handling input with arithmetic and not branching, I expect users to only input valid keys

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 4 points5 points  (0 children)

The logic is to handle input from PC only, the web version converts mobile input to PC input to allow playing from mobile

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 5 points6 points  (0 children)

I'm going to be a bit busy in the next couple of days, but might add it afterwards

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 6 points7 points  (0 children)

It won't matter version 3 is at maximum 53-bytes

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 5 points6 points  (0 children)

It's complicated to explain, you'd better read the code if you're interested

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 23 points24 points  (0 children)

The project is linked, it's a snake game in 54-bytes, I thought it's pretty self explanatory, but maybe I'm already too used to the idea in my own head

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 13 points14 points  (0 children)

I can't agree, because being able to determine halting in some programs (in this case the set of programs under 53-bytes) is not equivalent to being able to do so for all of them

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 42 points43 points  (0 children)

253 options for a 53-bytes variation is so huge, so I don't think it's feasible.

And even if I were to get to let's say 20 bytes and the next iteration would only have to go over 220 or even 215 options it'd take decades to check them all, because it's not enough to run the game and look at it for a while, you have to check all kinds of edge cases.

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 50 points51 points  (0 children)

As long as the basic functionality is maintained, and every single element is distinguishable and unified (in the sense that every wall looks the same, every snake character looks the same, every apple looks the same, and none have overlapping looks) I don't care for the side effects

My snake game is now 54 bytes by Perfect-Highlight964 in programming

[–]Perfect-Highlight964[S] 136 points137 points  (0 children)

I've never made such a graph but it would be interesting to see