Results 1 to 5 of 5

Thread: CardGame Class Library w/ BlackJack Demo.

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    California
    Posts
    52

    CardGame Class Library w/ BlackJack Demo.

    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

  2. #2

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    California
    Posts
    52
    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.

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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.

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    California
    Posts
    52
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width