Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Forums have been kind of dead so in an attemp to liven things up, I'm going to post my little project that I'm working on to help me get more familiar with the .NET framework.

 

What is it? A card game class library (yay). Right now it has all of the basic classes like Card, Deck, Player, Hand. The next step is to write an abstract Game class that can be inherited and created into BlackJack or Poker or whatever other card game. Then from those hopefully a GUI can easily be created either from the Game classes as an application in any .NET language. At least that's the goal.

 

Not much documentation yet either, just to warn whoever is taking a look. Although it's mostly self explanatory.

 

Feel free to comment. :)

Gamer extraordinaire. Programmer wannabe.
  • Moderators
Posted

I'm posting a reply only because you had this question in another thread. Regarding the enums.

 

I noticed that you created 2 files for them, you can create one file and place the class tags around both enums, maybe call it Enums. It won't need a constructor or anything. Then you can just Dim x as Enums or even Dim x as Enums.Suits.

Visit...Bassic Software
Posted

I put them in their own files so they can be simply used as is with short useful names (ie; Suits.Spade or Faces.Ace). You can still do a Dim s As Suits or Dim f As Faces then s.Spade or f.Ace. If I put them in a class it would just add another name to access them (ie; Class.Suits.Spade rather then Suits.Spade).

 

.. or am I missing something? Sometimes I'm a bit slow so I may not see what you're saying clearly. :)

Gamer extraordinaire. Programmer wannabe.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...