So In CP we are making 5 card stud poker on scratch and ive already made the dealing and shuffling process but my teacher is no very helpfull he jus gives us instructions ( i will post a link to them) but i need to know how to make a histogram that will compare my hand against an oponet knowing what rank of hand i have any suggestions or help would be greatly aperciated bu please dont give it away i wanna earn i i just want a little help thanks guys
Offline
Oops. Sorry that my computer suddenly shut off.
Okay, I can help you with this.
You just need to compare the rankings. You see "hand rankings overall" page under your "hints" excel file? Just determine which one of those several ones it is. If the two hands are the same, then you determine the high card.
If you want to learn how to do it, check out the "algorithm" page under the "hints" file, or ask me and I'll explain it to you.
Offline
What you need to do is find a way to determine which cards the user has.
I would put each card in the list as #suit.
Clubs=1, diamonds=2, hearts=3...
Oh, and 10 is A, J is B, Q is C, and King is D.
So the Queen of spades would be C4
That way you can determine, let's say... the number of spades. You just check the second letter of each card and see if it's a four.
That's the easiest way to make a histogram.
So, histograms are to determine how many cards of each there are.
When is this due, btw?
Last edited by kayybee (2011-09-29 23:12:59)
Offline
im doing this exact same thing in cp. do you happen to go to cy-ranch?
Offline
if i knew i wouldnt have checked the scratch forums for help he didnt really explain it too well, he pretty much just said figure it out yourself
Offline