Given a hand, I am trying to determine the value of that hand, and implement this in a programming language for fun. Would the following work? I am not a poker player, so I don't know for sure.
Input is 7 cards --> check if there is a straight --> if there is a straight, then check if there is also a flush, in which case the hand's value must be straight flush --> if there is a straight, but not a flush, then the hand's value most be a straight --> if there wasn't a straight at all, then check if it is quads. If true, then the hand's value is quads --> if not true, check if its a full house --> if not true, check if its a flush --> if not true, check set --> if not true, check two pair --> if not true, check pair --> if not true, it's just a kicker.