Joel Christophel wrote:
^That is about to become your best friend. Once your array is in ascending order, things obviously become a lot easier. I'd even recommend you using this to redo your current method for finding one pair, and you can even combine it with finding two pairs. Straights also become much, much easier once the numbers are ordered. Good luck! If you get stuck, you can feel free to ask.
Oceas Anderson wrote:
Joel Christophel wrote:
^That is about to become your best friend. Once your array is in ascending order, things obviously become a lot easier. I'd even recommend you using this to redo your current method for finding one pair, and you can even combine it with finding two pairs. Straights also become much, much easier once the numbers are ordered. Good luck! If you get stuck, you can feel free to ask.
That definitely will make things much easier for a straight. Thanks and I most likely will but Ill implement this part first.
Tony Docherty wrote:
Oceas Anderson wrote:
Joel Christophel wrote:
^That is about to become your best friend. Once your array is in ascending order, things obviously become a lot easier. I'd even recommend you using this to redo your current method for finding one pair, and you can even combine it with finding two pairs. Straights also become much, much easier once the numbers are ordered. Good luck! If you get stuck, you can feel free to ask.
That definitely will make things much easier for a straight. Thanks and I most likely will but Ill implement this part first.
Joel gave you some excellent advice, I suggest you take it before "implementing this part first".
Think about how you would check for pairs, triples etc if the hand is in order.
Oceas Anderson wrote:However I'm not entirely sure on how to make sure I get to distinct pairs and not a three of a kind.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |