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!

Hey there

WHats going on, its been a long time :P Well ive been busy with school work and such, and recently got back from a vacation. I am making plans to make an online portfolio to serve as a place i can put all my work for peopleto see and download. Lately though, aside from whatever crap the school has me doing, ive been focusing alot on XNA. Right now im going through the video tutorials from the guys at 3D buzz http://www.3dbuzz.com/vbforum/sv_home.php. Hands down these are the best tutorials for XNA, and for anyone who wants to learn programming.

Right now i am enroled in GSP-420, which is supposed to be a game engine prgramming class. However, AGAIN, the school changed the format at the last min, and it turned into another Torque Game Engine class. Oh i hate torque, and im really disapointed we wont be making our own game engine, and instead we are editing torques SDK. I mean, this is all good practice, but i dont really care about torque. Oh well.

First weeks assignments were easy, i just had to set up TGE in Visual studio.

Well ill keep you all updated on my new website comming up. Hopefully i will get it up tonight!