Mexican Train: Fair Dominoes

Mexican Train with fair deals you can check. Play the computer or pass the phone. No ads. · Español

Support

Questions, a bug, or a house rule you'd like? Email frijolitolabs@gmail.com. Replies usually come within two days.

How do I play?
Each round starts with a double in the hub: 12-12 in round 1, down to 0-0. Everyone builds their own train from the hub, and anyone can play on the shared Mexican Train. On your turn play one tile on your train, the Mexican Train, or any train with an open marker. Can't play? Draw one; if it still doesn't fit, pass and your train is open to everyone. Play a double and it must be covered. When someone goes out, everyone adds up the pips in their hand. Lowest total after the last round wins. Setup → How to play has the details.
Does the computer cheat?
No, and you can check. Computer players see only their own tiles, like a person. Every round's shuffle comes from a random seed: a fingerprint of the seed is shown during the round and the seed itself at the end, so the deal and every draw can be re-derived.
Can we play with several people on one phone?
Yes. Set more than one player to "person" in Setup. Before each person's turn the app hides the tiles until that person taps.
What's free and what does the purchase add?
The whole game is free for up to 4 players with the standard rules, 13 rounds or a quick 7. Mexican Train Pro, a one-time purchase, adds up to 8 players and house rules (double-blank counts 50; doubles that don't need covering). No subscription, no ads.
I bought Pro on another device.
Setup → Mexican Train Pro → Restore purchase. Family Sharing works.
The app closed in the middle of a game.
Open it again: the game is saved and picks up where it was.

How to check the deal

Before each round, the app picks a random 32-byte seed and shows the start of its fingerprint (the SHA-256 of the seed). The whole deal and the order of the boneyard come from that seed, so nothing can change once the fingerprint is on screen. When the round ends, the app shows the whole seed and fingerprint. Tap Copy, then:

  1. Check that SHA-256 of the seed equals the fingerprint.
  2. Start from the double-twelve set in order 0-0, 0-1, … 0-12, 1-1, … 12-12 and shuffle it (Fisher–Yates): for i from 90 down to 1, take the first 8 bytes of SHA-256(seed followed by i as 4 big-endian bytes) as a number r, and swap tiles i and r mod (i + 1).
  3. Remove the round's engine double. Each player in seat order gets the next 15 tiles (12 with 5–6 players, 10 with 7–8); the rest is the boneyard, drawn from the front.
import hashlib
seed = bytes.fromhex("PASTE THE SEED HERE")
print(hashlib.sha256(seed).hexdigest())  # must match the fingerprint
tiles = [(a, b) for a in range(13) for b in range(a, 13)]  # 0-0, 0-1, ... 12-12
for i in range(len(tiles) - 1, 0, -1):
    h = hashlib.sha256(seed + i.to_bytes(4, "big")).digest()
    j = int.from_bytes(h[:8], "big") % (i + 1)
    tiles[i], tiles[j] = tiles[j], tiles[i]
engine = 12   # this round's engine double (12, 11, ... 0)
players = 4
n = 15 if players <= 4 else 12 if players <= 6 else 10
deck = [t for t in tiles if t != (engine, engine)]
for s in range(players):
    print("Player", s + 1, sorted(deck[s * n:(s + 1) * n]))
print("Boneyard, drawn from the front:", deck[players * n:])

Privacy policy

Mexican Train collects no data. There is no account, no analytics, no advertising, and no third-party SDK.

Changes to this policy will be posted on this page with the date below.

Soporte

¿Preguntas, un error o una regla de la casa que te gustaría? Escribe a frijolitolabs@gmail.com.

¿Cómo se juega?
Cada ronda empieza con una mula en el centro: 12-12 en la ronda 1, hasta 0-0. Cada quien arma su tren desde el centro, y todos pueden jugar en el tren mexicano. En tu turno juega una ficha en tu tren, en el tren mexicano o en un tren abierto. ¿No puedes? Toma una del pozo; si no queda, pasa y tu tren queda abierto. Las mulas se tapan. Gana quien tenga menos puntos al final.
¿La computadora hace trampa?
No, y se puede verificar: cada reparto sale de una semilla cuya huella se muestra durante la ronda y la semilla al final.
¿Qué es gratis?
El juego completo es gratis hasta para 4 jugadores. Mexican Train Pro, un solo pago, agrega hasta 8 jugadores y reglas de la casa. Sin suscripción, sin anuncios.

Cómo verificar el reparto

Antes de cada ronda, la app elige una semilla aleatoria de 32 bytes y muestra el inicio de su huella (el SHA-256 de la semilla). Todo el reparto y el orden del pozo salen de esa semilla. Al terminar la ronda, la app muestra la semilla y la huella completas. Toca Copiar y luego: revisa que el SHA-256 de la semilla sea la huella; baraja el juego doble doce en orden 0-0, 0-1, … 12-12 con Fisher–Yates (para i de 90 a 1, los primeros 8 bytes de SHA-256(semilla seguida de i en 4 bytes big-endian) como número r; intercambia i y r mod (i + 1)); quita la mula de salida y reparte en orden de asientos 15 fichas (12 con 5–6 jugadores, 10 con 7–8). El resto es el pozo, que se toma desde el principio. El programa de arriba (Python) lo hace por ti.

Aviso de privacidad

Mexican Train no recopila ningún dato. No hay cuenta, analítica, publicidad ni SDK de terceros. Los nombres, tus ajustes y el juego en curso se guardan solo en tu dispositivo. La compra la maneja Apple; la app no hace conexiones a internet propias.