Tuolaji Online — a four-player trick-taking card game running on chain

Hi everyone,

I’ve been building Tuolaji, an implementation of the Chinese trick-taking classic card game (升级/拖拉机), with a backend running as a Motoko canister on the Internet Computer. It’s live and free to play: https://tuolaji.online

What it is

Four players in two partnerships, two decks plus four jokers (108 cards). Each deal is played at the banking team’s level, the declarer names trump, and the first team up the level ladder wins the match. If you know Bridge, Spades, or Euchre, it’ll feel familiar — the twist is the “tractor” (consecutive pairs) and the trump/level chain.

Tuolaji has been a widely popular card game among Chinese communities, at least with its root traced back to the 1970s. It has been played among family and friends, over dinner tables or at gatherings, and for almost half a century. But it has remained little known to the western world. My goal is to introduce this game to the global audience. That is why the website also aims to provide extensive learning materials, including built-in interactive tutorial and practice table that better explains each move. There is also a rulebook in the repo that can serve as the standard definition of this game.

Why put it on-chain

The game canister is the sole rule authority. Every declaration, kitty bury, lead, follow and throw penalty is validated server-side; clients only send commands and read a caller-scoped view. That gave a few things that are hard to get right in a normal backend:

  • Verifiable shuffle.
    The deck is Fisher–Yates shuffled with ChaCha20, keyed by an entropy blob drawn from raw_rand. Once a deal is scored, the canister publishes the entropy in a ShuffleRevealed event, so anyone can replay the shuffle and confirm the deal wasn’t tampered with.

  • Hidden information stays hidden.
    Hands and the kitty are only ever served through principal-scoped views — your cards go to you and no one else. For enhanced security, additional game canister could be deployed to SEV subnets.

  • Verified implementation
    The game logic is a public and open source Motoko canister; the deployed module hash can be checked against the source build and the canister page on the Internet Computer dashboard.

This is exactly what Internet Computer excels at, and why I think games like this are best suited for being hosted on ICP.

For builders

The game backend is open sourced under MIT license:

https://github.com/Tuolaji-Online/tuolaji

With Motoko implementation of the rule engine, test cases and the game rulebook. Builders are encourage to write your own client (or canister bot) to play the game against human players or against other bots. Nowadays with the help of LLM coding agents, it is only a few prompts away.

In case you wonder, yes, the whole game is built with the help from coding agents, mostly DeepSeek V4.1 Flash, but also a few others.

Feedback wanted

If you play a few hands, I’d love to hear:

  1. Any time the engine and the written rules disagree — that’s a bug, and I’d like to know which you think is right.
  2. Whether the guides and tutorials are easy to follow, or if you have spotted errors in them.
  3. UX / mobile issues.

You can report problems either here or in the game (on the summary screen after a game ends, which helps to better identify which table/deal/trick it was about).

One thing I need to make clear though: I have no intention to introduce tokenomics to this game. Maybe there will be paid membership or paid features down the road (because the cycle cost is real), but my goal is community building, with the hope to one day make Tuolaji as popular as Majong or Bridge (Yes, one can dream!). If you are interested in sharing this journey, please join me on Github!

Go get it tiger. We need a chess-dot-com for Tuolaji.

Strangely, even though tuolaji is wildly popular in China (like, EVERYBODY can play), it has zero presence outside of the Chinese community.

The world needs another card game.

I did like 3 or 4 games, without reading instructions, i have no idea how to play. There are instructions, but im too lazy to read and remember it. I think this is why not many players outside of China, people lazy.

Thanks! That is actually good feedback. Learning a new card game alone is never easy, for anyone. Do you think it would be better if it were a friend showing you how to play step by step?

One idea is to gamify the first lesson, e.g. with a cartoon character guiding you like a friend.

I’ve been wondering about this for my app, wondering if it’s worth uploading a youtube video. That’s how my shortcut brain likes to shortcut anyway

Cool game! Out of interest do you have plans to blackhole it or decentralise it or anything like that in the future?

That is a good question! At the moment the deployment is verifiable (i.e. compiled hash matches what is deployed), but I do personally retain the control to upgrade the canister to new versions. A blackholed game canister would be an option, if people wants extra security assurance. In fact, this kind of game naturally supports multiple backends, and a blackholed backend can be one of them. They don’t have be to long-lived either, e.g., I can imagine special blackholed backends for competition or tournaments.

Sounds very cool. Verifiability immutable game rules (and verifiable game rules that are the same for everyone) is something that can really take advantage of what the IC facilitates.

I’m looking forward to seeing how this project progresses. If you plan to blackhole anything let me know and I’ll happily set up perpetual funding for it via Jupiter Faucet like I did with your original blackhole canister.