Computer science java script project
if anyone could help me with this i would really appreciate it. okay so i have to make a 5 card poker game. i have it so there are 5 cards and when you click the button it deals out five random cards without repeating any cards. But now i need to do the logic for checking to see if the player wins. The hand rankings i need to do are four of a kind, flush, three of a kind, two pair, and one pair. i am stumped here. if it helps i am using an array in which each card is assigned a number. anybody have any ideas?
|