If both the players have flushes, then the value or rank of their cards is compared. If the players have the same card values, then the winner is decided by suit, with spades ranking the highest.