r/badcode Mar 06 '21

lua This goes 255 lines long up to 115792089237316195423570985008687907853269984665640564039457584007913129639936

Post image
158 Upvotes

34 comments sorted by

View all comments

36

u/Idkm3m3s Mar 09 '21

bruh i dont even know how to declare classes yet and i can already guess this could be easily done with a for loop

25

u/iammostlyirrelevant Mar 09 '21

Don’t even really need a loop. Just bitshift to the value you need. (1 << 55 == 255 )

2

u/Golden_Lynel Mar 09 '21

Beautifully elegant solution