Thursday, October 01, 2009

Fun with C#, Console Apps and Gaming

During one of my C# Fundamentals classes, I realized we were rehashing a few examples a little repetitively. Now, granted, they were solid real-world examples that we were building on (bank accounts, logins, calculators) but while shooting the breeze about roleplaying and computer games, I realized we could have some fun with a primitive console game. Sort of Zork meets Dungeons and Dragons combat.

So I formulated the beginnings of such a game and posted it for my students. It really is just a "story telling" mechanic right now, but I've started working on building it out into more of an interactive game that lets the user choose between a few basic commands for the characters in play, like Greet, Flee, or Fight. Again, intentionally primitive. But there's lots of fundamental code that a novice programmer can practice with to accomplish this humble undertaking.

At any rate, here is that initial draft of the console game if you are a C# coder and would care to kick the tires on this idea and take a shot at "building it out" further yourself. It will require you to unzip the file, and place the Gaming1 folder in your Projects folder, inside the Visual Studio folder, inside your Documents.

Have fun and fight the good fight!

On the Road,
Eric J. Reid

Labels: