Help Whith Action Script in Flash MX?
By poker_boy | No CommentsLeave a Comment
Last updated: Friday, April 20, 2007 | 104 Views Tags: , , , , , ,

This week’s question is a good one. Let’s have a look:

Question: I have a question about how I should make a poker game with flash. I have set all the 53 cards in separate keyframes and a frame is then randomly chosen with gotoAndPlay(random(54)); now what I want to do is set each cards properties which can then be acesed by in diferent framesets. the propertys have to be evaluated by the rules. like finding a pair would require some way of evaluate the cards numbers and then apling a value to the players score. if somone could tell me how to do this please!
Answer: First that random thing may not work because some of the cards may show up twice. Last time I checked you can't have 2 or more of the exact same card.

You need to associate numbers and suits with each of the cards. From there you need to write algorythms which determine how strong your hand is(high card, pair,two pair,straight,flush,etc)

New comments are closed

Comments

There are no comments just yet