You are correct indeed. My algorithm wasn't even considering a lower pair when computing a score for a 2 pair hand. I've modified it a bit but need to check the mapping of hands again. It is difficult to map a hand to a long value without either overflowing the variable or overlapping different ranges of values mapped to unique hands. I don't have much time to devote to this (due to classes), but will try to test and update the code soon.
You are correct indeed. My
By David Cheeseman (not verified)You are correct indeed. My algorithm wasn't even considering a lower pair when computing a score for a 2 pair hand. I've modified it a bit but need to check the mapping of hands again. It is difficult to map a hand to a long value without either overflowing the variable or overlapping different ranges of values mapped to unique hands. I don't have much time to devote to this (due to classes), but will try to test and update the code soon.