Wednesday, June 18, 2008

Tetris Raytracer Compiler

It is being said, that every man in course of his life should build a house, plant a tree and father a son. These three crucial tasks can be find in the life of a programmer as well - write a tetris game, write a raytracer and write a compiler.

Since I didn't actually wrote any of these things, I think it's the highest time to do so. Once I wrote Nibbles in assembler and lightmapper in C, but these don't really count, so let's start with the real deal then.

I will start with the easiest one - Tetris. I assume I can finish it in less than two weeks time (bear in mind I do work for a living and I will not work on it during weekends). I will work about an hour / two hours a day. I will semi-regularly write updates about my progress and if I actually manage to finish on time, I will buy myself something fancy and expensive :)

The rules for Tetris

  1. Deadline 30th June 2008
  2. Pure Win32 GDI drawing (I already know SDL, Allegro, Cairo etc, so it wouldn't be a learning experience)
  3. Pretty code (preferably C++, so that I can create a multiplayer version later easily)
  4. No external libraries whatsoever, no external graphics, all resources included - one exe file
  5. max 17kB (I just made this number up, there was no thinking/assessing process involved :) )

So enough chatting, let's start coding :)

0 comments: