Minor Projects

Tetris

Genre: puzzle
Date: Dec 2007
Language: C++
Objective: Create a clone of tetris on the Command Console
The game loads tetrads into a custom tetrad data structure from a file. When the tetrads appear on the gameboard, only the block section is drawn, the rest, designated by a specific symbol, is ignored. the blocks are capable of rotating in either direction. When the blocks hit the bottom or land on another block, they become immovable blocks. The game checks these immovable blocks to see if there are any full rows, If there are, remove the full row and drop the rows above it down.
The most difficult feature of this little game is getting the tetrads to properly rotate without going out of bounds. The most complicated rotation involved the I bar and getting it to properly rotate against a wall or by a stationary block.
Sample code: Tetrad.h | Tetrad.cpp: the tetris blocks
main: the driving force behind tetris.

TCG basic card simulator

Genre: Simulation
Date: Sept-Oct 2006
Language: C++
Objective: Create a project using the foundations of an object oriented language.
This very basic card simulator uses operator overloading, file streams, inheritance, and other concepts. The two computer players draw cards from a deck, then face off with the cards they pull. The winner is the one with the higher attack power vs the lower defense power.
Sample code: Main: the main game loop and simulation parameters.
Deck: the data structure holding the cards. each player, called a duelist, owns a deck. This class also loads information from a file.

Matrix

Genre: data structure
Date: Sept 2006
Language: C++
Objective: create a matrix data structure
Sample code: Matrix.h | Matrix.cpp