A n d y T u

==Comp Sci Major==

Home School Work

My Projects

(Click images to cycle through them)

Tic Tac Toe game: Click to expand

This is a version of the common paper and pen game: Tic Tac Toe. For my program, the two players would type either an x or o game piece, then a row and col val to know where they want to place their game piece.

Galton Board simulation: Click to expand

The Galbon Board is probably best known as the game Plinko on the popular TV game show: The Price is Right. The Rectangular board that the Plinko board uses is actually based on a triangular board known as the Galton Board. The board was used to show the normal distribution effect that occurs when a random number of pellets are dropped from the top. The simple explanation for the accumulation of pellets to land in the bins in the middle region at the bottom of the device is because of the greater number of paths/pegs that any given pellet can take on its traversal down the board. The three board types I used were the original Galton Board, the Plinko board, and the Frustum (a triangular board with its top removed). For my program, the inputs are in order: the number of rows of pegs, the number of columns, the number of discs, the bias type (either no bias, favoring the left, favoring the right and with degree of bias such as 0.8 right bias favor or -0.8 left bias favor etc), the rng (random number generator; here I included the GNU Scientfic Library, specifically the random number generator libraries such as the MT19937 Generator, the Tausworthe Generator etc), whether there was a start slot indicated (hasStartSlot would read 1 as yes, 0 as no and the start slot only applied to the Plinko and Frustum board since the original triangular board (Galton board) could only be dropped from the top), and the board type (Galton, Plinko, Frustum). The output shows all the bins and the total pellets each bin accumulated. This was an example of a stochastic model since multiple runs of the same parameters will yield different results but all still favor a normal distribution assuming no bias and starting slot set.

XML Shredder: Click to expand

XML shredder program I wrote for a practicum. The program will takes XML files and extract each element and store into a database (relational db). Users have option to include an XSD schema to ensure that the XML file provided conforms to the structure before shredding begins. A web application and command line version written both written in PHP were developed.

Word Search game: Click to expand

This is a text-input version of the well known word search game. I have made this example with 8 animal names that the user must type in the search field to find. Since it is command line, I wrote actual algorithm to ensure scan the board for the user input and so a word is "found" if the user input is found on the board and on the list I create (in an array). Future work would be to write a graphical word search of course.

VER 1 YUM: Pac Man Homage: Click to expand

This is my version of Pac Man game which i call YUM (Yellow Underdog Man version 1.0 ). Player play as the yellow circle moving YUM with UP, DOWN, LEFT, RIGHT keyboard controls. The objective is to eat all the red coins before any of the ghosts catches YUM. YUM can screen wrap. The ghosts will only chase YUM once YUM enters a ghost's FOV or field of vision which can be toggled by press 'F'. Player can also restart current level by pressing 'R'. The blue walls are randomly built using variation of Recursive Backtracker.

Game for Android: Click to expand

I wrote this game for Android. The objective is to watch the blue dots light up and connect them in that order. You do so by drawing a line connecting each dot. You need to avoid red-outlined purple dots as they will erase your path but you can press a purple dot which temporarily erases it to allow your path to draw through it.