Page 1 of 1

FAX-ME: Let's write Tetris

Posted: Fri Dec 15, 2023 3:08 pm
by MikeHawk
If you ever wanted to learn more about binary representation, boolean operators, and how this knowledge can help you program cool stuff, I just uploaded a simple black-and-white page packed with illustrations, code, and step-by-step instructions on how to build your own Tetris engine. Let me know what you think.

Re: FAX-ME: Let's write Tetris

Posted: Fri Dec 15, 2023 5:13 pm
by buddpaul
Wow! This is like an early Christmas gift! Super cool!

Re: FAX-ME: Let's write Tetris

Posted: Sat Dec 16, 2023 3:48 pm
by MikeHawk
buddpaul wrote: Fri Dec 15, 2023 5:13 pm Wow! This is like an early Christmas gift! Super cool!
Thanks! I should probably add some illustrations for the OR operator (XOR is used a few times but never explained, and MOD can be replaced with AND in this case, so I should probably point that out too.) I also spotted some remnants of old code that is no longer necessary (like clearRow taking an argument when the new code no longer uses it.)

Re: FAX-ME: Let's write Tetris

Posted: Tue Dec 19, 2023 11:55 am
by bongomeno
That's a way different and probably better approach to making tetris than what I did. Should be an interesting read. Thank you.