
-----------------------------------
RainbowX1
Wed Jan 18, 2006 6:01 pm

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

-----------------------------------
Cervantes
Wed Jan 18, 2006 6:10 pm


-----------------------------------
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 [url=http://www.compsci.ca/v2/viewtopic.php?t=366]arrays or [url=http://www.compsci.ca/v2/viewtopic.php?t=9636]types.

-----------------------------------
RainbowX1
Wed Jan 18, 2006 6:16 pm


-----------------------------------
check your pm

-----------------------------------
Cervantes
Wed Jan 18, 2006 6:27 pm


-----------------------------------
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 [url=http://www.compsci.ca/v2/viewtopic.php?t=10905]Object Interaction tutorial.

-----------------------------------
[Gandalf]
Thu Jan 19, 2006 6:08 pm


-----------------------------------
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
Fri Jan 20, 2006 5:21 pm


-----------------------------------
It's last in the walkthrough; don't blame me!

Fishy.
