Winning Conditions for Poker.

I've written the winning conditions for pair, high card and three of a kind. However, I am very confused on how to write the winning conditions for a royal flush, straight flush, four of a kind, full house, flush, and straight. Can anyone here please point me in the right direction? I would greatly appreciate it.