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 aShuffleRevealedevent, 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:
- Any time the engine and the written rules disagree — that’s a bug, and I’d like to know which you think is right.
- Whether the guides and tutorials are easy to follow, or if you have spotted errors in them.
- 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!