I've been noodling with a Win32 version of Tetris, the ubiquitous "shape placing" game. I'm working in C++ using the Simple Directmedia Layer for my graphics. One of the interesting things in working out the game is the "shape" data. Below is the code for one my shapes, and the methods to "rotate" and "draw" it.
When you work as a computer professional, you will inevitably hear your share of corporate phrases and workplace lingo. You know what I'm talking about. Things like "let's take that off-line", and "let's drill down", and the infamous "we have to think out of the box." It's so easy to mock these phrases, yet I find myself tossing them into my own regular speech.
Or better yet, get a school-aged child to play it. This will be yet another piece of computer code I hope to break down in these pages.
I finished that concentration game. You can play it at:
There's a bunch to BLOG about this game. I'll get to it soon, I hope.
A few days ago our portable DVD player (a Panasonic DVD-LS 82) began producing an "Error H03" message to the screen whenever we gave it a known working DVD. Normally, a malfunction like this is a chance for me to dip into the savings for an upgrade, but the error had a hardware fix that I wanted to try out.
In the previous part, I showed the main loop to grab the "interesting bits" from the HTML of my Sporting News' BLOG. Let me dig into this a little more.