Posted: Wed Jan 18, 2006 6:01 pm Post subject: Crazy Eights
Hello, I was wondering if anyone could help me out on a Crazy Eight's card game. I'm having troubles with methods such as identifying the topcard of the shuffled deck, etc
Sponsor Sponsor
Cervantes
Posted: Wed Jan 18, 2006 6:10 pm Post subject: (No subject)
What have you got?
I could tell you that you need an array of cards, and that the top card is just the first element of that array, but I don't know if you know about arrays or types.
RainbowX1
Posted: Wed Jan 18, 2006 6:16 pm Post subject: (No subject)
check your pm
Cervantes
Posted: Wed Jan 18, 2006 6:27 pm Post subject: (No subject)
You can conduct everything through replies to this thread. No need to make things private. Later, someone may be in the same situation as you, and could benefit from any help you receive in this thread.
I find it surprising that you are using classes, and yet are having trouble getting the top card off the deck.
Your Deck class would be an array of Cards, so Deck would have to import Card. Check out the Object Interaction tutorial.
[Gandalf]
Posted: Thu Jan 19, 2006 6:08 pm Post subject: (No subject)
Cervantes wrote:
I find it surprising that you are using classes, and yet are having trouble getting the top card off the deck.
The downside of promoting OOP all the time?
Cervantes
Posted: Fri Jan 20, 2006 5:21 pm Post subject: (No subject)