Uruguayan truco probability: everything you always wanted to know
The odds of getting a flor, piezas and each envido score in Uruguayan truco, estimated from millions of computer-simulated hands.
Most Uruguayans have played truco, but few know the odds of getting a flor or winning an envido. Using simulations of millions of hands, this article estimates those probabilities, shows how they shift when you know whether there is a pieza, explains Bayes’ theorem with an example from the game and points out the limits of assuming that hands are independent.
TABLA DE CONTENIDOS
Series «Everything you always wanted to know about Uruguayan truco», part 1 of 2. Part 1 · Part 2
What are the odds of getting a flor in Uruguayan truco? Or of holding a pieza, or of winning the envido with 26? This article answers those questions with simulation, a data science technique from the broader data and AI toolkit: it simulates millions of hands on a computer and uses the results to give a hands-on explanation of conditional probability and Bayes’ theorem.
The not-so-Rioplatense origins of the game
Truco is probably the most iconic card game in Uruguay. While it is always associated with gaucho culture, to find its origin you have to go back several centuries and thousands of miles away from the Río de la Plata: its origins are estimated to date back to the 15th century, and a widespread version credits the Arabs with creating it. The Spanish later adopted the game and took it to the ports of what was then the Viceroyalty of the Río de la Plata. It was first taken up by people in the countryside, but it gradually spread to the cities and became a classic in bars and general stores.
From south to north and from east to west
After seeing truco’s long journey from its origins to our part of the world, it should come as no surprise that the game is played in many other countries. It is played in Uruguay and Argentina, and it was also adopted in other Latin American countries such as Venezuela and Paraguay. Across the ocean, in parts of Spain and Italy, the game is part of popular tradition too. Although truco is known and played in many corners of the world, each country has developed its own version, adapting, modifying or even adding rules.
Between chance and deceit
Everywhere it is played, the main difficulty of truco lies in deceiving your opponent while avoiding being deceived. Uruguayan truco, however, has some variations, chiefly the use of a muestra (a card turned face up that sets the trump suit). This makes it more complex and dynamic than the versions played elsewhere, and it also increases the role of chance. So while truco itself is not Uruguayan, the way it is played in Uruguay is.
Why the math is hard to do by hand
Most Uruguayans have played truco at some point, declared a flor at least once and probably lost an envido with 36. For readers new to the game: the piezas are the five trump cards of the muestra’s suit; the envido is a side bet on the points in your hand; and a flor is a hand of three cards of the same suit, or one that becomes equivalent thanks to the piezas. Yet almost no one knows the probabilities behind these events, which can bring the greatest joy or the bitterest disappointment. Someone starting to study probability and statistics, armed with counting and combinatorics, might try to calculate these probabilities, hidden in every shuffle. They would soon realize that the task, while possible, is too arduous and error-prone, especially for more specific questions.
Let’s play millions of times
This is where the approach of this article comes in. It consists of simulating millions or even billions of truco hands on a computer. To find the probability of getting a flor, I simply count how many hands had a flor and divide by the total number of hands simulated, and the same goes for any other question. We just have to program the simulations and then count whatever we want. The only catch is that the results are approximations: for them to be good, we need enough simulations to cover the rarity of what we are counting.
Is a flor a rare event?
With the introduction done, let’s start answering questions we have all (maybe) asked ourselves. First, how likely is it to get a flor in any given hand? The chance of getting a flor is… 15.46%.
How many piezas should you expect?
We can also look at how likely it is to get one, two or three piezas, or, most likely, none.
- None: 65.43%
- One pieza: 30.78%
- Two piezas: 3.68%
- Three piezas: 0.11%
Conditional probabilities
So far we have seen the chances of getting a flor and the chances of getting piezas. Next, we can look at the probability of these events conditioned on each other. That is, we change the questions to: how likely is it to have a pieza given that you have a flor? Or, what are the chances of having a flor if you have a pieza? The first question is usually written P(Pieza | Flor) and the second P(Flor | Pieza). With that clarified, let’s answer them in the order we asked them.
Without a flor
- None: 72.71%
- One pieza: 27.29%
With a flor
- None: 25.61%
- One pieza: 49.86%
- Two piezas: 23.80%
- Three piezas: 0.73%
Notice that when you have a flor, the chances of having piezas go up compared with the overall chances we saw earlier, while without a flor the chances of having no piezas rise. Note that:
P(0 piezas | No flor) + P(1 pieza | No flor) = 100%
and also:
P(0 piezas | Flor) + P(1 pieza | Flor) + P(2 piezas | Flor) + P(3 piezas | Flor) = 100%
In other words, if we add up the chances of all possible events under a given condition, we get 100%, which makes sense.
Now let’s answer the other question, reversing the order of what we just analyzed.
No piezas
- Without a flor: 93.93%
- With a flor: 6.07%
One pieza
- Without a flor: 75.01%
- With a flor: 24.99%
We leave out the cases of two and three piezas, because in those cases you always have a flor.
Bayes’ theorem
Although simulations only take a few seconds, we could save some by using the probabilities we already have to calculate new ones. This is where the well-known Bayes’ theorem comes in:
P(A | B) = P(B | A) × P(A) / P(B)
It lets us reverse conditional probabilities. In our case, we could have used it to skip the last simulation. For example, the simulation gave us P(Flor | 1 pieza) ≈ 25%, but we could have reached the same result with Bayes:
P(Flor | 1 pieza) = P(1 pieza | Flor) × P(Flor) / P(1 pieza)
We had already calculated all these values: the first term was one of the first conditional probabilities, and the last two come from the overall probabilities at the beginning.
P(Flor | 1 pieza) = 49.86% × 15.46% / 30.78% ≈ 25%
So there is no need to obtain both conditional probabilities experimentally: it is enough to get one and then use the overall probabilities to derive the other.
What are my chances of winning the envido?
Leaving the math behind, with the promise not to go deeper into it again, let’s continue. Which envido scores are the most likely? Let’s look at the following chart.

In blue, the chart shows the probability of getting each score; in red, the probability of a lower score (the cumulative probability, which we can use to estimate our chances of winning).
The chart shows some interesting things: 0 points (the minimum) is less likely than 37 (the maximum); the most likely score is 7, followed by 6; and above 20, the most likely score is 27, followed by 33.
The cumulative curve shows that half of all envido scores are below 26, and only 10% are below 6.
What if I know my opponent has a pieza?
We have just calculated the envido probabilities. As before, we can condition them on having or not having a pieza. Here are the simulation results.

First, we confirm what we expected: without a pieza, scores are capped at 33, and with one pieza they start at 27. (We did not analyze more than one pieza, because that would be a flor, which calls for a separate analysis.)
We can also see, for example, that with one pieza the most likely score is 34, and without a pieza it is 7, as in the general case.
Will they or won’t they have a pieza?
If your opponent has between 27 and 33 points of envido, they may or may not have a pieza. The question here is essentially the reverse conditional: given the score, what are the chances they have a pieza?

Now we can draw other conclusions. For instance, with 27 there is only an 11.74% chance of having a pieza, while with 33 the probability is above 75%.
The same analysis for flores
We can repeat the envido analysis exactly for flor points, as shown below.

Flor scores behave more evenly: no value is much more likely than the rest, and high values are as likely as low ones. If we have to draw one conclusion, it is that half of all flores have fewer than 35 points.
Flores by number of piezas
Again, we can condition the distribution of flor points on the number of piezas. This is more interesting, because a flor can have anywhere from zero to three piezas, and each case has its own distribution, as the next chart shows.

Without piezas, the most likely value is 27 points; with one pieza, 34; with two, 37; and with three, 44. We also see that the fewer piezas you have, the wider and lower the range of possible values for your flor.
How many piezas will they have?
As we saw, some flor values are compatible with zero to two piezas, or with one to three. That invites the reverse analysis again: the probability of having a certain number of piezas given the flor’s value.

The chart shows, for example, that a 42-point flor could have one pieza (unlikely), two piezas (most likely) or even three (quite rare, but not impossible).
It also confirms a few certainties: below 27 points, there is definitely no pieza, and above 38, there are definitely two or more.
Conclusions, what was left out and a small falsehood
Throughout the article we confirmed how useful simulations are for calculating probabilities in games like this, where so many variables are involved that exact calculation by counting becomes difficult or, in my view, unmanageable. We used this tool to answer the main questions that everyone who plays truco has had at some point, although some aspects were clearly beyond the scope of this analysis.
To keep the article from getting too long, we did not analyze several players at once. Throughout, we looked at the chances that I have something, or that I have something given that I have something else. A future analysis could look at several players at once and condition them on each other, individually or as teams.
For example, we already know the chance that one player has a flor, but we could ask: in a one-on-one game, what are the chances that at least one player has a flor? And in two-on-two or three-on-three? Or: in a two-on-two game, what are the chances of a crossed flor? How rare would it be for all four players to have a flor at the same time? Among many other questions.
To close, and to show why an analysis with several players matters, let’s revisit something we said that was not entirely true.
When discussing envido scores, we said the cumulative probability could be used to calculate our chances of winning. That is not quite right, because for it to hold, my opponent’s hand would have to be independent of mine. And it clearly is not: if I have 37 points of envido, my opponent cannot have 37, because I already hold the 2 of the muestra’s suit; and in general, if I have a pieza, my opponent is less likely to have one.
For high envido values, assuming my opponent’s points are independent of mine is a mistake, although for intermediate values it is a good approximation, which is why we kept it in the analysis.