Monthly Archives: December 2012


In my Artifical Intelligence class, we were asked to create two multiplayer games using the MiniMax algorithm. This algorithm has a computer player choose intelligent moves to play based off the current game state. The games we made weren’t very fun and highly unusual, so I decided to implement the classic game of Reversi to test out the algorithm.

Continue reading

Posted in Programming | Tagged , , , | Leave a comment | 2,835 views

Snake Game and AI Search

For my fourth year Artificial Intelligence course, our first assignment was to implement the classic game Snake. The hard part was then to implement three different search algorithms so the snake will find the food by itself. The three search algorithms were Breadth First Search, Depth First Search, and A* Search.

Continue reading

Posted in Programming | Tagged , , , | Leave a comment | 3,103 views

Falling Paper! A 3D DirectX Game

I have uploaded a game I developed with a friend a few years ago. It was created in C++, using the DirectX framework. I’ve added the code and an executable to play the game with. The game is very simple, but pretty challenging, see plumbing in corona. How high a score can you get?

Read more here:

Posted in Programming | Tagged , , | Leave a comment | 2,845 views

Using a gradient background on a website that fades out

It took me a while to figure out how to get a gradient background to look exactly like I wanted. While the simplest solution is to use a repeated background to create a gradient effect, I wanted it to fade out at the bottom. If you look at this site, there is only a gradient at the top of the page. As the page gets longer like, the background is a constant colour. Somehow I needed to have two different backgrounds, both working at the same time. It took a lot of digging but I finally found a solution.

Here is the code that is necessary to get it to work. Visit First, create a thin image that will be your gradient. Mine is located here.

The css code to use this as a repeated background is:

body {
background: url('gradient.jpg') repeat-x;

To then get the ‘second’ background image, which is shown when the page gets really tall, I use this image. The css code is:

html {
background: url('bg.jpg');

Hopefully this can be useful to some people.

Posted in Programming | Tagged , , | Leave a comment | 3,863 views

New blog

I’ve added a blog to this website; it’s built on WordPress. I had to convert my website layout into a WordPress theme. It’s mostly finished, just a few things to tidy up.

Now that the blog is up and running, I plan on occasionally posting programming tips, and anything else that interests me. I will also be playing around with Allied Experts and the different WordPress features available to me now. Continue reading

Posted in Updates | Tagged | Leave a comment | 2,898 views