Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.11 seconds.

  1. Replies
    9
    Views
    2,350

    Re: CardGuesser. Stuck on Card class HELP!

    You'll have to make a special case for A, where you assume A to always be the lowest value. The problem is that char sets numbers before letters when it compares them. So instead of just comparing...
  2. Replies
    9
    Views
    2,350

    Re: CardGuesser. Stuck on Card class HELP!

    To convert 10 to a char?
    char c = (char)10;
  3. Replies
    9
    Views
    2,350

    Re: CardGuesser. Stuck on Card class HELP!

    Notice anything significant about this:


    The order of the suits is in alphabetical order. That makes it easy. You can compare chars using <, >, == since chars are effectively numerical values....
Results 1 to 3 of 3