Computer Science Canada Needhelp with face cards for a deck. |
Author: | Psychotogen [ Wed Apr 23, 2008 9:06 pm ] | ||
Post subject: | Needhelp with face cards for a deck. | ||
This is what i have and it works perfectly for producing 4 suits and 13 of each number without repeating. I just need some pointers on how to make it display the name of a face card instead of the number.
|
Author: | I Smell Death [ Wed Apr 23, 2008 9:27 pm ] |
Post subject: | RE:Needhelp with face cards for a deck. |
I am assuming that the face cards are going to be the same numbers each time you play. Can't you just use a if statement such as if deck(card)mod 13=12 then put "King" % or what ever card it may be else put deck (card)mod 4 end if |
Author: | Psychotogen [ Wed Apr 23, 2008 10:12 pm ] | ||
Post subject: | Re: Needhelp with face cards for a deck. | ||
Actually, how could I condense this stupidness?
|
Author: | syntax_error [ Wed Apr 23, 2008 10:41 pm ] |
Post subject: | RE:Needhelp with face cards for a deck. |
use a for loop. hint: make cardNo a string array. |