Hello all, got an assignment in my C++ class to deal a 5 card hand and determine it the hand is a pair, 3 of a kind, flush, etc. I have been thinking about it and with sorting the hand I can write a bunch of if statements with multiple && and || to figure this out but that is a lot of code.
Does anyone have any thoughts or tips on a more elegant solution other than this mass of if statements? I dont want code or anything like that, just a nudge in the right direction
Thanks
Does anyone have any thoughts or tips on a more elegant solution other than this mass of if statements? I dont want code or anything like that, just a nudge in the right direction
Thanks