跪拜 Guibai
← All articles
Backend

IntelliJ IDEA Plugin Plays Dou Dizhu Under the Guise of 'Synergy Debugging'

By 皮皮林551 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

It's a playful reminder of how far IntelliJ's plugin API can go in remaking the editor for niche uses, and the disguise mechanics are a tongue-in-cheek nod to developers who need a break without looking idle. For anyone who spends all day in the IDE, it's a free, functional card game that is also a social engineering joke.

Summary

xechat-idea is an open-source IntelliJ IDEA plugin that embeds a fully playable Dou Dizhu (Fight the Landlord) card game into the IDE. Players log in with `#login`, list games with `#showGame`, and start a round with `#play 1`. The game supports both human-versus-AI matches and 2- or 3-player online rooms, with room creation and invited players joining via `#join`. Bidding follows standard Dou Dizhu rules: players bid 1-3 points, the highest bid becomes the landlord, and passing triggers a redeal.

The party piece is a "Debug Mode" with three skins. Default shows the game normally; Soft recolors cards to fit the IDEA theme and hides suit icons; Hard transforms everything into a fake debugging session: "Synergy Debugging" as the title, player names like "Machine 01", "Master" and "Slave" for roles, "Run!" and "Debug" for buttons, and cards rendered in hexadecimal with a hover-to-inspect tooltip. A separate `#mode 1` command hides the chat window, and `#clean` wipes chat history, so a glance at the screen shows only code-like UI.

Takeaways
— The plugin is open source at https://github.com/anlingyi/xechat-idea.
— Core commands: `#login {nickname}`, `#showGame`, `#play {game number}`, `#join`, `#mode 1`, and `#clean`.
— Game modes: human vs AI, plus 2-player (with a bot) or 3-player online rooms.
— Bidding uses 1-3 points; if all pass, the system redeals.
— Three display modes in the game: Default, Soft, and Hard.
— Hard mode relabels all game terms as debugging terms and shows cards in hexadecimal.
— The `#mode 1` and `#clean` commands hide chat history for stealth.
— A built-in bot teammate is described as intentionally low-intelligence.
Conclusions

The Hard mode's rebranding is the cleverest part: swapping 'Pass!' for 'Run!', 'Play' for 'Debug', and players for 'Machine 01' turns a card game into something that passes as a distributed cluster debugging session at a glance.

The author's repeated jokes about the bot's incompetence suggest the AI logic is deliberately basic, which fits the plugin's fun-first purpose more than any serious attempt at a challenge.

Concepts & terms
Dou Dizhu
A popular Chinese card game also known as 'Fight the Landlord'. Three players compete, with one designated as the landlord and the other two as farmers; the landlord aims to play all cards first, while the farmers cooperate to beat them.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗