I'm getting to solve my setToTop error. however not completely. I'm breaking down the process and apparently i only sort hands up to 46 rather than the full range of possibilities. if i set fraction to 0.20 handsSorted[i] will result iinto handsSorted[265] however handsSorted only contains 47 elements... can somebody help me with this?
Code:
In [79]:
bob = Range()
bob.setAllFracs(1.0)
handsSorted= bob.getHandsSortedAndEquities(bob, board)
display(bob)
print handsSorted
test = int(0.2 * scipy.misc.comb(52, 2))
print test
jdoe = bob.setFrac(handsSorted[46][0],1.0)
print jdoe
print size(handsSorted)
[([0, 11], 0.82426438296003313), ([0, 37], 0.82426438296003213), ([0, 50], 0.82426438296003213), ([0, 6], 0.69224857268335438), ([0, 32], 0.69224857268335427), ([0, 45], 0.69224857268335427), ([0, 17], 0.60314009661835788), ([0, 4], 0.60160298638559584), ([0, 30], 0.60160298638559584), ([0, 14], 0.49883618796662665), ([0, 27], 0.49728809837505888), ([0, 40], 0.49728809837505888), ([0, 13], 0.43432147562582601), ([0, 26], 0.4318181818181851), ([0, 39], 0.4318181818181851), ([0, 25], 0.38315766359244535), ([0, 38], 0.38175230566534812), ([0, 51], 0.38175230566534812), ([0, 12], 0.38175230566534801), ([0, 23], 0.30026350461132972), ([0, 10], 0.29885814668423255), ([0, 36], 0.2988581466842325), ([0, 49], 0.2988581466842325), ([0, 22], 0.23458498023715291), ([0, 35], 0.23317962231005585), ([0, 48], 0.23317962231005585), ([0, 9], 0.23317962231005582), ([0, 21], 0.18309178743961174), ([0, 34], 0.18170838823012578), ([0, 47], 0.18170838823012578), ([0, 8], 0.18170838823012575), ([0, 16], 0.16024374176548112), ([0, 29], 0.15905797101449276), ([0, 42], 0.15905797101449276), ([0, 3], 0.15905797101449273), ([0, 15], 0.14715634606938982), ([0, 2], 0.14601449275362333), ([0, 28], 0.14601449275362327), ([0, 41], 0.14601449275362322), ([0, 20], 0.14216073781291019), ([0, 7], 0.14081027667984075), ([0, 46], 0.14081027667984064), ([0, 33], 0.14081027667984061), ([0, 18], 0.10540184453227885), ([0, 5], 0.10410628019323646), ([0, 31], 0.10410628019323633), ([0, 44], 0.10410628019323633)]
225
None
94
tips on how to further break the problem down and fix my bug?