Announcement

Collapse
No announcement yet.

5 card poker hand reader

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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
    Coding up a storm and running the BuyPoe.com Network, which get 500k-1 Million Visitors monthly.

    #2
    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?

    Comment


      #3
      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
      Coding up a storm and running the BuyPoe.com Network, which get 500k-1 Million Visitors monthly.

      Comment


        #4
        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.

        Comment


          #5
          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, 12:46 PM.
          Coding up a storm and running the BuyPoe.com Network, which get 500k-1 Million Visitors monthly.

          Comment


            #6
            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.

            Comment


              #7
              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 [email protected]
              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, 06:24 PM.
              Skype - wastedbro

              Comment


                #8
                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...

                Comment


                  #9
                  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

                  Comment


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

                    Does it matter what language it's in?

                    Comment


                      #11
                      Originally posted by Sticky View Post
                      The forum you're in is C#, but your post says you want C

                      Does it matter what language it's in?
                      I need it to be in C which the one Wastedbro has done is in C# which isn't a version I can use.

                      I'll sum it all up in one post below as it's a tad jumbled now.

                      1) Read one line of text input containing 2-character codes for each card. There are 5
                      cards per line with a space between each card.
                      2) Display a text description of the cards, the name of the poker hand and the score to
                      standard output.
                      3) Display an error message to standard input when the input value is not supported by
                      the program.
                      Must be in C

                      1,2,3,4,5,6,7,8,9,10,Jack,Queen,King,Ace = 1,2,3,4,5,6,7,8,9,0,J,Q,K,A
                      Hearts, Clubs, Diamonds, Spades = H,C,D,S
                      RF,ST,4 of a kind, FH, Flush, Straight, 3 of a kind, Two pair, One Pair, High card(J,Q,K or A), nothing(2-9) = 100,75,50,25,20,15,10,5,2,1,0

                      Offering $30-$50
                      Last edited by Tim; 01-01-2013, 12:36 PM.
                      Coding up a storm and running the BuyPoe.com Network, which get 500k-1 Million Visitors monthly.

                      Comment


                        #12
                        Hey Just seen your posts, I recommend on using some sort of sorting algorithm i.e Bubble Sort.

                        I had some spare time so i did the source code it works with the input you have suggested also gives clear indication of the scoring.

                        Would be happy with half now and half after, I linked you the code, lets say $50.

                        Peace out and don't do anything i wouldn't do

                        Comment

                        Working...
                        X