Skip to content
Snippets Groups Projects
Commit c9360ed4 authored by mcmlxxix's avatar mcmlxxix
Browse files

forced hand.group to initialize as true array.

parent cee437c3
Branches
Tags
No related merge requests found
......@@ -118,7 +118,7 @@ function Hunt_Straight(cards,depth) {
/* This function accepts any number of cards in as a true array */
function Rank(cards) {
var hand=new Object();
hand.group = new Array();
hand.group = [[],[],[],[],[]];
hand.rank = 0;
hand.str = "";
......@@ -231,8 +231,6 @@ function Rank(cards) {
the array index. unshift() will leave
the cards sorted from high to low. */
for(c in count) {
if(!hand.group[count[c]])
hand.group[count[c]]=new Array();
hand.group[count[c]].unshift(c);
}
return hand;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment