PDA

Click to See Complete Forum and Search --> : CardGame Class Library w/ BlackJack Demo.


wyrd
Dec 1st, 2002, 01:14 PM
Okay so what is this? First and foremost the project is a card games class library that (hopefully) will allow people to quickly add their own card game classes to it (such as poker, blackjack, etc) by simply inheriting the GameBase class and adding extra methods for the rules of the card game.

Now whether or not I succeeded at this isn't really the point I suppose, although that was the general goal in mind if someone had the desire to write their own card game and didn't want to start from scratch. The main reason why I even started on this was to get used to VB.NET and play with OOP as I've only been actually doing OOP for 3 months now. I'm also fairly new to "real" programming as I started with VB6 about a year ago and have been learning Java and VB.NET recently. This will more then likely show as you go through the code.

In the zipped file you'll find the following things;
-The main folder which holds the CardGames class Library.
-A BlackJack class built off the class library (also in the main folder).
-A sub folder of the main folder titled BlackJack, which is a demo BlackJack game (as simplistic looking as it may be) built using the class library.

Notes:
-The class library is far from fully commented.
-The demo BlackJack is not fully commented and I have not implimented Insurance yet.

All in all I'd say combined with the class library and demo game it's about 90% finished.

I can take harsh criticism with the best of them, so please feel free to comment in the worst ways. Also if you notice any bugs please let me know, thanks!

Download it @ http://www.danpeverill.com/CardGames.zip

wyrd
Dec 3rd, 2002, 02:57 PM
If anyone cares.. I finished the Class Library by fixing some bugs and documenting everything. Also added Insurance to the BlackJack demo and fixed a few bugs. The link above was updated if you feel like downloading it. :p

Edneeis
Dec 3rd, 2002, 04:37 PM
Thats pretty darn cool wyrd!

The blackjack works like real Vegas, I can tell because I lose on your game just like the real thing.

Pirate
Dec 3rd, 2002, 05:42 PM
outstanding!!
One of the best examples to get accustomed to OOP.That shows how VB.NET loves (Inheritance).I'm just wondering if you can use Polymorphism in such examples , maybe this shorten your code.;)

wyrd
Dec 3rd, 2002, 05:57 PM
Originally posted by pirate
I'm just wondering if you can use Polymorphism in such examples , maybe this shorten your code.;)

I'm learning VB.NET just like everyone else, so I'm more then happy to take any coding suggestions if anyone has some.