 
 
     #renamining hand_types : [ 'High Card', 'Pair', 'Two Pairs', 'Three of a Kind', 'Straight',
-    #'Flush', 'Full House', 'Four of a kind' ]
+    #'Flush', 'Full House', ]
 
 exports.compare_hands = compare_hands

    # Straight Flush
    if (same_suit)
        # check if all cards have consecutive values
        if (!![1..4].reduce (b, i) -> b & (hand[i-1].value + 1 == hand[i].value))
            return [7].concat(values)

    # TODO



            return 'Tie.' if (i == 5)

    else if (p[1].type[0] > p[2].type[0])
        return result.replace('%1', p[1].name)
                     .replace('%2', type_to_s(p[1].type[0]))

    else
        return result.replace('%1', p[2].name)
                     .replace('%2', type_to_s(p[2].type[0]))



