Computer Science Canada

Crazy Eights

Author:  RainbowX1 [ 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

Author:  Cervantes [ Wed Jan 18, 2006 6:10 pm ]
Post 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.

Author:  RainbowX1 [ Wed Jan 18, 2006 6:16 pm ]
Post subject: 

check your pm

Author:  Cervantes [ Wed Jan 18, 2006 6:27 pm ]
Post 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.

Author:  [Gandalf] [ Thu Jan 19, 2006 6:08 pm ]
Post 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? Wink

Author:  Cervantes [ Fri Jan 20, 2006 5:21 pm ]
Post subject: 

It's last in the walkthrough; don't blame me!

Fishy.


: