Gallery

Programming Programming - These are examples of what I've programmed. I have included code samples wherever I can.
System Design System Design - Here's a taste of my design experience. Concepts, flowcharts and working demos.
Miscellaneous Miscellaneous - Everything that doesn't fit in the above categories. From 3d modelling to QA work.
 

The Lonely King

This is a card game I created with two classmates for a class project. It is based on solitaire, only it's a race against the AI with a few extra twists. For this project, I wrote the card shuffling routines, opponent's AI and more.

Sample Source code

Shuffle Function
Link... (Right click, Save as... to download)

AI Function
Link... (Right click, Save as... to download)

Contact

In The Lonely King, each player starts off with a random King pulled from their deck and placed at the top of the screen. When either player is able to move their Lonely King to one of their Ace Piles, the game ends and the player with the most points wins. Points are determined by the total value of the cards in that player's Ace Piles.

The game starts with all 6 'working' piles empty. The players can start stacking cards onto them as they see fit. As in regular solitaire, you can only stack cards incrementally from highest to lowest and must be opposite colors.

Drawing cards from the deck is always in 3's, sometimes forcing you to move less-desired cards away to expose the cards you need.