Jump to content


Photo

Poker


  • Please log in to reply
5 replies to this topic

#1 o0Zero10o

o0Zero10o
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 27 June 2006 - 12:49 PM

Currently im ready to value off the card deck but im not to sure how to go about it... If anyone has a suggestion could you post or msg me. [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /]

Thanks

#2 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 28 June 2006 - 06:38 AM

I believe you need to provide more details, so we could helps you if we know.

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#3 o0Zero10o

o0Zero10o
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 28 June 2006 - 12:17 PM

The mathematics side of the poker... Giving the spades,hearts etc... values and the rest of the deck a value.

And the win side of it Royal Flush, straight, Two Pair etc... [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /]

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 28 June 2006 - 02:35 PM

Are you talking about how to play the game, or are you wanting to create a PHP Poker game? If you are aksing about how to play it then this is not the correct forum.

#5 rshadarack

rshadarack
  • Members
  • PipPip
  • Member
  • 29 posts

Posted 28 June 2006 - 02:43 PM

I'm not quite sure, but I think (s)he's asking how to represent a card in php. The way I did it when I made a game in C++ a while back is to have the integer part be the face value and the decimal part be the suit. For example:

2.1 Would be a 2 of (let's say) clubs.
13.3 Would be a king of hearts.
9.1 Would be a 9 of clubs.

And so on.

And if you aren't sure how to go about checking for wins, I don't think you're ready to make a game like poker. I would recommend trying blackjack first, if you're new to php and programming in general.

#6 o0Zero10o

o0Zero10o
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 29 June 2006 - 08:09 AM

Nevermind, ill work it out myself...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users