I am going through the source code of the 2+2 evaluator and trying to make sense of it but having a hard time. Specifically, this is the build I am looking at:
https://github.com/tangentforks/TwoP...rate_table.cpp
The way I understand it, for the first pass, the for loop generates every possible combination of cards adjusting for relevant suits.
However for the second pass, I do not understand the logic used to index the HR array. The saveID function should return the index of the card combo within the ID array. Why is he then multiplying by 53, and adding 53? And then why is the maxHR computed as IDnum*53 + card + 53, and why is that being used as the index? Hopefully someone can shed some light on these questions.