Then convert it to integer 64bit value. For example like this:
Code:
// Convert hand value to unsined long number (32 bits)
// 4th byte 3rd byte 2nd byte 1st byte
// [7][6][5][4][3][2][1][0] [7][6][5][4][3][2][1][0] [7][6][5][4][3][2][1][0] [7][6][5][4][3][2][1][0]
// | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
// --- STRAIGHT FLUSH ---
// [0][0][0][0][0][0][0][0] [0][0][0][0][1][0][0][1] [0][0][0][0][0][0][0][0] [0][0][0][0][*][*][*][*]
// [ hand type] Hi card in street(0-12)----->[ ]
// --- FOUR OF A KIND ---
// [0][0][0][0][0][0][0][0] [0][0][0][0][1][0][0][0] [0][0][0][0][*][*][*][*] [0][0][0][0][*][*][*][*]
// [ hand type] [ four ] [ ]<---Hi card from the rest of cards
// --- FULL HOUSE ---
// [0][0][0][0][0][0][0][0] [0][0][0][0][0][1][1][1] [0][0][0][0][*][*][*][*] [0][0][0][0][*][*][*][*]
// [ hand type] [ trips ] [ pair ]
// --- FLUSH ---
// [0][0][0][0][0][0][0][0] [0][0][0][0][0][1][1][0] [0][0][0][*][*][*][*][*] [*][*][*][*][*][*][*][*]
// [ hand type] [ Fife hi cards in flush ]
// --- STRAIGHT ---
// [0][0][0][0][0][0][0][0] [0][0][0][0][0][1][0][1] [0][0][0][0][0][0][0][0] [0][0][0][0][*][*][*][*]
// [ hand type] Hi card in street(0-12)----->[ ]
// --- THREE OF A KIND ---
// [0][0][0][0][0][0][0][0] [0][0][0][0][0][1][0][0] [0][0][0][0][*][*][*][*] [*][*][*][*][*][*][*][*]
// [ hand type] [ trips ] [ 1st ][ 2nd ]<---Values of two hi cards ]
// --- TWO PAIRS ---
// [0][0][0][0][0][0][0][0] [0][0][0][0][0][0][1][1] [0][0][0][0][*][*][*][*] [*][*][*][*][*][*][*][*]
// [ hand type] [ Hi pair ] [ Low pair ][ hi card ]
// --- PAIR ---
// [0][0][0][0][0][0][0][0] [0][0][0][0][0][0][1][0] [*][*][*][*][*][*][*][*] [*][*][*][*][*][*][*][*]
// [ hand type] [ pair ][ ] [ ][ ]<---three hi cards
// --- HI CARD ---
// [0][0][0][0][0][0][0][0] [0][0][0][0][0][0][0][1] [0][0][0][*][*][*][*][*] [*][*][*][*][*][*][*][*]
// [ hand type] [ five hi cards ]
// A K Q J T 9 8 7 6 5 4 3 2
//
//
Statistics: Posted by nefton — Fri Apr 19, 2019 12:35 pm
]]>