It should have counted the flush - either 4 or 5, dependin on if the cut card matches. If it didn't, and you can reproduce let me know, I will try to find it...
43 is my highest, but thats after a lot of games! On some of the cards (eg Jack and Queen of Clubs) the black areas have become transparent, and you can see through them.
Very impressive - though as with all complex projects it is quite hard to work out what is happening from the code. Can you give us a breakdown of how the cards are shuffled? I had some ideas of how I would simulate a shortening array using 52 sprites, so that rather than pre-shuffling the cards they would be selected in a random order, but you apparently pre-shuffle them.
As a benchmark, if you can get 30 you would be doing well. The original game required this full 4-hand round to be played 4 times, and you win if you make to the end of the cribbage board, which is 121 points. So 30 per round should be a good goal...
This is a variation on a Solitaire version of Cribbage that I used to play as a kid. You are given a hand of 5 cards. Select one for your crib, and the other 4 become a hand. Repeat the process 3 more times, and you end up with 4 hands + the crib, giving you 5 hands. Then, a cut card is drawn and the hands are scored. See http://en.wikipedia.org/wiki/Cribbage#The_show for details on scoring.
This game was a challenging forray into the world of "arrays without arrays". Check out the ValueHandler and SuitHandler sprites. Other projects have been here to represent a deck of cards ((link to project) for example), but I had a specific need where I needed to keep track of where the cards ended up, too. Feel free to reuse this deck of cards wherever you need it!
Comments
You need to be logged in to post comments
Add a Comment
Um it doesn't count right some times, but thats okay. Good idea and well done!
I don't know how to play cribbage but I got 32 anyway... Fun game!
46
I loved this game so much I remixed it! (link to project)
As far as I remeber from the rules a flush in the crib must be 5 cards.
One bug: When checking the crib, you need 5 cards of the same suit for a flush, not 4 like a normal hand.
Um... don't click the green area while the cards are being counted. ;)
I made a project using your cards. (link to project)
I just got a flush in the first hand (4 card) and didn't get credit for it. :(
I would love to see this game remixed to play cribbage against the computer. Hmmm... maybe I'll look into that!
55!!!!!!!!!!!!!!!!!!!!!!!!!
43!
:( i have java but it wont work so i cant see it, but, i think i love it anyway!
It should have counted the flush - either 4 or 5, dependin on if the cut card matches. If it didn't, and you can reproduce let me know, I will try to find it...
Great game. 43 is my high score. What about points for a flush?
43 is my highest, but thats after a lot of games! On some of the cards (eg Jack and Queen of Clubs) the black areas have become transparent, and you can see through them.
28
yay! i got 41!
i got 26
Awsome i got 24!!
how come you can see through the cards?
shuffling takes sooo long
20 is my score!
It should be a top loved project!
Great job.
COOL!
(link to project)
check out the description here (link to forums)
Very impressive - though as with all complex projects it is quite hard to work out what is happening from the code. Can you give us a breakdown of how the cards are shuffled? I had some ideas of how I would simulate a shortening array using 52 sprites, so that rather than pre-shuffling the cards they would be selected in a random order, but you apparently pre-shuffle them.
I fixed the timings of the sounds and speech changes. Please let me know if there are any other issues that you find! Have fun!
As a benchmark, if you can get 30 you would be doing well. The original game required this full 4-hand round to be played 4 times, and you win if you make to the end of the cribbage board, which is 121 points. So 30 per round should be a good goal...
I scored 22. Is that good?