This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-09-28 22:03:55

cnt311
New Scratcher
Registered: 2011-09-28
Posts: 9

Hello i need help for my CP class

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

 

#2 2011-09-28 22:13:49

cnt311
New Scratcher
Registered: 2011-09-28
Posts: 9

Re: Hello i need help for my CP class

http://www.megaupload.com/?d=SVVBG5NR this is pdf that explains

http://www.megaupload.com/?d=0FYPL4QO this is the hints we get

thanks for any help i greatly apreciate it

Offline

 

#3 2011-09-28 22:17:45

cnt311
New Scratcher
Registered: 2011-09-28
Posts: 9

Re: Hello i need help for my CP class

http://scratch.mit.edu/projects/cnt311/2053616 this is what i have so far

Offline

 

#4 2011-09-28 22:18:15

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Hello i need help for my CP class

Maybe look at other card games on scratch to try to get ideas.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&link4=http://i.imgur.com/POEpQyZ.png&link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#5 2011-09-28 22:33:30

cnt311
New Scratcher
Registered: 2011-09-28
Posts: 9

Re: Hello i need help for my CP class

i did but the closest this was video poker and when i took apart the code it was nothing like what im required to do

Offline

 

#6 2011-09-28 22:43:05

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Hello i need help for my CP class

Well, you want to have rankings to know which card is better, right?

Wait. Which game are you playing?

Offline

 

#7 2011-09-28 23:16:59

cnt311
New Scratcher
Registered: 2011-09-28
Posts: 9

Re: Hello i need help for my CP class

5 card stud i need to know which hand is better

Offline

 

#8 2011-09-28 23:38:55

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Hello i need help for my CP class

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

 

#9 2011-09-28 23:48:01

cnt311
New Scratcher
Registered: 2011-09-28
Posts: 9

Re: Hello i need help for my CP class

right now i have variables to determine how many of each suit the hand hasbut i dont understand what a hisogram is and how i would implmentt it

Offline

 

#10 2011-09-29 23:12:42

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Hello i need help for my CP class

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

 

#11 2011-10-01 13:27:27

th3shameless
New Scratcher
Registered: 2011-10-01
Posts: 2

Re: Hello i need help for my CP class

im doing this exact same thing in cp. do you happen to go to cy-ranch?

Offline

 

#12 2011-10-01 15:45:39

cnt311
New Scratcher
Registered: 2011-09-28
Posts: 9

Re: Hello i need help for my CP class

yeah im in mr cargill's class bro  and i got the histogram done now i need to sort and compare any clue on how to do that?

Offline

 

#13 2011-10-01 16:19:51

th3shameless
New Scratcher
Registered: 2011-10-01
Posts: 2

Re: Hello i need help for my CP class

if i knew i wouldnt have checked the scratch forums for help  tongue  he didnt really explain it too well, he pretty much just said figure it out yourself  hmm

Offline

 

#14 2011-10-07 14:33:41

cnt311
New Scratcher
Registered: 2011-09-28
Posts: 9

Re: Hello i need help for my CP class

who is this

Offline

 

Board footer