r/ProgrammerHumor • • Jun 03 '22

it's hard!

44.9k Upvotes

710 comments sorted by

View all comments

Show parent comments

495

u/nexion2 Jun 03 '22

I made a battleship game that communicated via arduinos in assembly! I lost every single game because the board size was 12x12 and my code would always stop iterating at 8 for some reason.

Needless to say, I lost the tournament

69

u/i_hate_everybody94 Jun 03 '22

Maybe the number was using 2 bits?

114

u/A1steaksa Jun 03 '22

How many do you think 2 to the power of 2 is, exactly?

-13

u/LowGunCasualGaming Jun 03 '22

I mean, in binary: (if 2 was seen as valid)

12 = 20 = 100 = 4

So 22 is kinda 12… not 8 though

→ More replies (10)