Fun With Classes (Hero & Monster Fight)

Here is a quick D&D style game that demonstrates the creation of classes and properties. Then using those properties to pass around to methods and perform different functions on them. Since this was a very simple program with a loop I put the Character and Dice classes into the Default.aspx.cs file. I didn’t see the need to split them out for something so small along with demonstration purposes. I’ll upload anotherĀ  program later with them split out to show how the OOP nature further. If you goto the live example of this one just keep refreshing the webpage. There isn’t anything intuitive that goes on here. Or just download the source code for yourself.

Keep tabs on next weeks submission. Doing some simple work with class libraries and how you share code across a winform and windows application.

Continue reading