kazko96
kazko96
  • Threads: 1
  • Posts: 2
Joined: Mar 29, 2011
March 29th, 2011 at 9:16:31 AM permalink
I would like to understand the trick with 134459 starting hands on this page:


I wonder if it is important to generate starting hands where c1<c2<c3<c4<c5 (cards numbered from 0 to 51), for example when I have hands 1,3,12,25,38 and 1,3,12,38,25 they have the same poker value, but when I index them like Wizard did, it counts different indexes.


And second question:

I am not sure if I understand this sentence: "Put the score in array0. Put the first hand in element 0 of the array, and increment by 1 for each hand."

I understand it as follows: for first hand I do
array0[0][0]++;
array0[0][1]++;
...
array0[0][16]++;

for second hand I do
array0[1][0]++;
array0[1][1]++;
...
array0[1][16]++;

and so on...
Is this right??
  • Jump to: