== Stud Truco ==
Players: 2, 4 or 6
Deck: Piquet Deck (32 cards 7 to A)
Card Ranking: High-to-Low AKQJT987
Deal: Each player gets 3 cards, 2 face down and 1 face up
after all cards are dealt the top card is turned up and indicates which card
will be trump.
Trump Rule: The trump is the next higher up in rank card to the turned up card.
E.g. If 8 was turned up 8 will be trump, If A was turned up 7 will be trump.
Play: Play follows exactly like Truco with the exception of Envido
Envido: Any 2 cards in a hand of the same suit or a pair can be "vied",
if more than 2 are of same suit, or you have a triplet, just count the top 2 highest.
For vying, the score of a envido is
(i) For a flush(two cards of same suit)
sum of the points for the two cards plus Twenty.
(ii) For a pair the value is the sum of pair multiplied by 2*
Face cards count - 10, A is always 1, number cards count face value
E.g. -
== R Commands ==
combn(c(1,2,3,4,5,6,7,8,9,10,"J","Q","K","A"), 2, nbins = 2)
combn(c(1,2,3,4,5,6,7,8,9,10,"J","Q","K","A"), 2)
seq(from = 1, to = 10, by = 1)
1,2,3,4,5,6,7,8,9,10,"J","Q","K","A"
combn(c(1,2,3,4,5,6,7,8,9,10,"J","Q","K","A"), 2, nbins = 2)
combn(c(1,2,3,4,5,6,7,8,9,10,"J","Q","K","A"), 2)
=== excel formula ===
=IF(A15="A",1,IF(A15="K",13,IF(A15="Q",12,IF(A15="J",11,VALUE(A15)))))
=IF(B15="A",1,IF(B15="K",13,IF(B15="Q",12,IF(B15="J",11,VALUE(B15)))))
=((IF(A15="A",1,IF(A15="K",13,IF(A15="Q",12,IF(A15="J",11,VALUE(A15)))))) + (IF(B15="A",1,IF(B15="K",13,IF(B15="Q",12,IF(B15="J",11,VALUE(B15)))))) + 20)
=((IF(A16="A",1,IF(OR(A16="K",A16="Q",A16="J"),10,VALUE(A16)))) + (IF(B16="A",1,IF(OR(B16="K",B16="Q",B16="J"),10,VALUE(B16)))) + 20)