Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Python translation don't test the full house with two triples case (at least not intentionally).
To filter out wrong solutions which return
'three-of-a-kind'
on two triple cases, I think something like this should be added.['3♠', '3♥'], ['3♦', '4♠', '4♥', '4♦', '2♣']
'full house', ['4', '3']
'three-of-a-kind', ['4']
or similar,'full house', ['3', '4']
I'm not sure whether the Python translation includes the similar test (listed below) or not, but even if they don't, I think it's okay not having them since these are relatively unlikely to be missed.
'four-of-a-kind'
with a'three-of-a-kind'
:['3♠', '3♥'], ['3♦', '4♠', '4♥', '4♦', '3♣']
, Expected:'four-of-a-kind', ['3']
'full house'
with two possible'two pair'
s:['3♠', '3♥'], ['3♦', '4♠', '4♥', '5♦', '5♣']
, Expected:'full house', ['3', '5']
'two pair'
with three'pair'
s:['3♠', '3♥'], ['A♦', '4♠', '4♥', '5♦', '5♣']
, Expected:'two pair', ['5', '4', 'A']