Thursday, April 8, 2010

Adjacency Matrix

Last lab was a little tough but with some pointers from the professor I finished it. I had to write a new member function "degree" for the Wtgraph C++ class given. The "degree" function should determine and output how many even degree vertices there are and how many odd degree vertices, and then calculate the weight of them all. The trouble I was having was that instead of my for loop adding up each row and doing the odd/even check it did the check for each vertex. All I had to do though was move the check outside of the for loop for "j" and add a row/column counter. Doh!

Thursday, March 25, 2010

Discrete Mathmatics




-Ask the user for the required number of initial values.
-Determine the next 19 values according to the given recurrence relation.
-Output the resulting 19 values along with the values for the two representative functions provided

Recursive functions are useful when you cannot decide which route to take with a particular problem, you can save time by testing different results with recursive functions. Although they can be memory hogs becuase they call themselves until the problem is solved.


This took a lot of planning out on paper in order to visualize correctly on how the program would flow. What i had a real hard time grasping was how i would take the user input which was in an array, and plug it into my function that executed the recursive algorithm. From there i also had to print out the appropiate number to the screen, which was another toughy. I used a for loop and incremented the number n to 18. Each cycle would print out and execute the algorithms.

Monday, March 8, 2010

Comming along

Just finished Calculus, and now I am taking Discrete Mathmatics. Sounds like something you could get arrested for right? It actually a pretty cool class where you solve logic based math puzzles, and put them into C++ form. First ILab had me make a C++ console app that ran through a truth table. There were two problems that were kinda like this:


A says B is lying
B says A is telling the truth

User put in input whether or not A and Bare telling the truth using "T" or "F".

They way i checked for consistancy though could of been more effecient though:

//Checking for true and false values. Probably not the most efficient way
if (p == "T" && q == "T")
{
varA = "FALSE";
varB = "FALSE";
}
if (p == "T" && q == "F")
{
varA = "TRUE";
varB = "FALSE";
}
if (p == "F" && q == "T")
{
varA = "TRUE";
varB = "TRUE";
}
if (p == "F" && q == "F")
{
varA = "FALSE";
varB = "FALSE";
}

But it works!

Tuesday, November 17, 2009

MeteorX

Ive got a new XNA game in the works! Its a planet defence game, in the year 30XX, where you defend planet X from meteors and other space like things in via "Weapon X". Notice a trend? My cousin josh has made some badass music for it already, and ive been writting out the requirements and some concept art. This will be the official spot for the game and updates as time passes. So...audience...stay tuned for screen shots and such!

Wednesday, August 5, 2009

Sup everyone! Its been a min, but ive been busy working on a text adventure game. The engine itself was build using the 3d buzz tutorials. I am now taking it a step further and revamping the engine. It is going to be a zombie like text adventure, with an atmospheric feel like silent hill. Right now i am working on a Random Battle algorithm so that you can fight enemies. So far ive got the screen to switch to a battle screen every (RandomNumber) steps. If i can pull this off, this will be sweeeet.

Wednesday, July 15, 2009

Portfoilio Website

Well ive done alot of work on my portfoilio website, and its turning a out great. Its not finished yet, but at least ive got some work on there:) Im going to finish it up soon hopefully.
http://sites.google.com/site/shanenelsonproject/

Friday, July 10, 2009




Just wanted to make a post to show off my Sephiroth tattoo. RPG's are hands down my most favorite genre of gaming. I just love how you can get lost on these worlds, and assume the role of someone else. The stories in RPG's are always emmersive. Well i love tattoos, when they are done right, so im going for a gaming theme. Sephiroth imo is a hands down badass, and one of the most momorable, and legendary game/villain characters in gaming. Enjoy!