Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Tim
    Senior Member
    Tim is offline

    Posts
    104

    5 card poker hand reader

    Looking for a a C programming that will read one line of text input containing 2 character codes for each card. It must then display a description of the cards, the name of the poker hand and the points for each hand.

    It must also show an error if the characters that are entered do not refer to a card.

    Leave a post with how much you want to design the program

  2. #2
    #Return
    Scarecrow is offline

    Posts
    3,443
    Quote Originally Posted by Tim View Post
    Looking for a a C programming that will read one line of text input containing 2 character codes for each card. It must then display a description of the cards, the name of the poker hand and the points for each hand.

    It must also show an error if the characters that are entered do not refer to a card.

    Leave a post with how much you want to design the program
    When you say "points" do you mean the percentage chances of winning with that hand or what?

  3. #3
    Tim
    Senior Member
    Tim is offline

    Posts
    104
    Quote Originally Posted by Scarecrow View Post
    When you say "points" do you mean the percentage chances of winning with that hand or what?
    Nope, RF= 100, SF=75 etc..

    Input would be

    >5h
    >2c
    >2s
    >2d
    >JS

    The output would then be

    >5 of hearts
    >2 of clubs
    >2 of spades
    >2 of diamonds
    >Jack of spades
    >Three of a kind
    >Score is 10 points

  4. #4
    #Return
    Scarecrow is offline

    Posts
    3,443
    Quote Originally Posted by Tim View Post
    Nope, RF= 100, SF=75 etc..

    Input would be

    >5h
    >2c
    >2s
    >2d
    >JS

    The output would then be

    >5 of hearts
    >2 of clubs
    >2 of spades
    >2 of diamonds
    >Jack of spades
    >Three of a kind
    >Score is 10 points
    I got a few days off so I'd be happy to play around with it a bit (No promises), hit me up on Skype -- You have it already. You may need to explain the point thing though

    Edit: and I need to sleep, just got in from new years celebrations.

  5. #5
    Tim
    Senior Member
    Tim is offline

    Posts
    104
    Quote Originally Posted by Scarecrow View Post
    I got a few days off so I'd be happy to play around with it a bit (No promises), hit me up on Skype -- You have it already. You may need to explain the point thing though
    I'm back in the UK on Saturday so I'll hit you up then. For anyone else who wants to earn some money I'll explain hat's needed below, happy offering somewhere between $30-$50 as long as its ALL your own work and not copied from other sites.

    >A program that reads a 10 character input (i.e. 2H JD 4S 4C 0H) and gives an output of (2 of Hearts Jack of Diamonds 4 of Spades 4 of Clubs 10 of hearts 1 pair Score is 2) it must also display an error message if when the input value is not supported by the program i.e. 5Z

    Royal Flush = 100 points
    Straight flush = 75 points
    Four of a king = 50 points
    Full House = 25 points
    Flush = 20 points
    Straight = 15 points
    3 of a kind = 10 points
    2 pair = 5 points
    1 pair = 2 points
    High card = 1 point (So either An Ace, Queen, King or Jack)
    Last edited by Tim; 12-25-2018 at 01:46 PM.

  6. #6
    Banned
    Her0 is offline

    Posts
    833
    Ahh so your using the points as the scoring system? So if you get 1 pair yo u got 2 points and if someone has 2 pairs then they got 5 points and they obviously beat you.

  7. #7
    Senior Member
    wastedbro is offline

    Posts
    527
    Quote Originally Posted by Tim View Post
    I'm back in the UK on Saturday so I'll hit you up then. For anyone else who wants to earn some money I'll explain hat's needed below, happy offering somewhere between $30-$50 as long as its ALL your own work and not copied from other sites.

    >A program that reads a 10 character input (i.e. 2H JD 4S 4C 0H) and gives an output of (2 of Hearts Jack of Diamonds 4 of Spades 4 of Clubs 10 of hearts 1 pair Score is 2) it must also display an error message if when the input value is not supported by the program i.e. 5Z

    Royal Flush = 100 points
    Straight flush = 75 points
    Four of a king = 50 points
    Full House = 25 points
    Flush = 20 points
    Straight = 15 points
    3 of a kind = 10 points
    2 pair = 5 points
    1 pair = 2 points
    High card = 1 point (So either An Ace, Queen, King or Jack)

    Anyone questions or finished product of the program can be e-mail to tim.ff14@gmail.com
    I'll email you and post here when I'm done. I should be done in a couple hours or less if you'll be on today. I'll organize the input and output displays to make it easily readable ( if that's what you want).

    I can also code up that first one by today if Scare doesn't want to.

    UPDATE: The program is finished and has been sent to your email.
    Last edited by wastedbro; 12-31-2012 at 07:24 PM.
    Skype - wastedbro

  8. #8
    #Return
    Scarecrow is offline

    Posts
    3,443
    Quote Originally Posted by wastedbro View Post
    I'll email you and post here when I'm done. I should be done in a couple hours or less if you'll be on today. I'll organize the input and output displays to make it easily readable ( if that's what you want).

    I can also code up that first one by today if Scare doesn't want to.

    UPDATE: The program is finished and has been sent to your email.
    It's the same program... He's only looking for one I believe...

  9. #9
    Senior Member
    wastedbro is offline

    Posts
    527
    Quote Originally Posted by Scarecrow View Post
    It's the same program... He's only looking for one I believe...
    The program description in his first post doesn't match the one in the post I quoted. Looked like two different requests. I'm not sure if they are, but they look like it to me.....
    Skype - wastedbro

  10. #10
    Server Admin
    Sticky is offline

    Posts
    966
    The forum you're in is C#, but your post says you want C

    Does it matter what language it's in?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •