IntelliJ IDEA Plugin Plays Dou Dizhu Under the Guise of 'Synergy Debugging'
Foreword
If it's too much to play chess in IDEA, then playing Dou Dizhu (Landlord) in IDEA is even more over the line, right?
Getting Started
1. Login
Use the #login {nickname} command to log into the server.
Login command demo
2. View game list
Use the #showGame command to see the game list.
Game list
3. Run the Dou Dizhu game
Use the #play {game number} command to run a game.
Start Dou Dizhu:
#play 1
Run Dou Dizhu
Supports both human vs AI and online multiplayer modes. Let's look at the AI mode first, just click the "Start Game" button.
AI mode game interface
The built-in bots are a bit dim, so be careful with your teammate, heh!
① Bidding
When the game starts, the system randomly picks a player to bid first. Bids range from 1 to 3 points; highest bid becomes the landlord. You can also pass. If everyone passes, the system redeals and a new round of bidding starts, until someone becomes the landlord.
Bidding demo 1
Bidding demo 2
Bidding demo 3
② Playing cards
Click the cards you want to play; when the "Play" button becomes clickable, click it to play.
Playing demo 1
Playing demo 2
When you don't want to play or have no valid cards, click the "Pass!" button to skip your turn.
Pass demo 1
Pass demo 2
This bot... lives up to its name 😅
Bot teammate behavior
③ Online mode
Click the "Create Room" button to create a 2-player or 3-player room.
Create room interface
Let's create a 3-player room for a 3-player online Dou Dizhu; a 2-player room brings a dumb bot along, haha~
Click the "Invite" button to invite other players.
Invite player interface
After receiving the game invitation, a player simply uses the #join command to join the game!
Join via #join command
When all players are ready, click the "Start Game" button to begin Dou Dizhu!
Online ready
Online game start
④ Safe "slacking off" mode
You've probably noticed the "Debug Mode" option in the bottom right. That's for adjusting how the game interface elements are displayed.
There are 3 display modes:
Default
The default mode as we see it now. This is the normal game display with cards and messages shown.
Soft
Flexible mode. This mode hides the game title at the top and suit info, and recolors the cards to match the IDEA theme so it's less conspicuous.
Soft mode effect
Hard
Rigid mode. This mode is something else, heh~ straight to the picture:
Hard mode effect
In this mode, the game name becomes "Synergy Debugging" (协同调试), player nicknames become "Machine 01, Machine 02, Machine 03", the landlord becomes "Master", farmers become "Slave", the "Pass!" button becomes "Run!", and the "Play" button becomes "Debug". Doesn't that look like some distributed cluster debugging?
The cards are displayed in hexadecimal, which is even more absurd!
To make the cards at least a bit readable, cards "2-9" and "A" can be identified by the last hex digit; other cards map as shown:
Hard mode card mapping
You can also hover the mouse over a card to see its value.
Hover to see value
At this point, some brothers and sisters, uncles and aunts, might ask: "Your game interface is safe enough, but the chat panel on the left is a bit too prominent, isn't it?"
Chat panel too prominent
Is it possible that the left panel can be dragged?
Drag the left chat panel
If you don't want to drag, you can also enable "muddy the waters" mode.
Use the command #mode 1 to enable it.
Enable slacking mode
Then use the #clean command to make yourself even cleaner.
Now the chat history will be hidden. When the foreman asks, you can say you're debugging code!
Open source address
https://github.com/anlingyi/xechat-idea
xechat-idea open source project