跪拜 Guibai
← Back to the summary

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?

Image

Getting Started

1. Login

Use the #login {nickname} command to log into the server.

Login command demo

Login command demo

2. View game list

Use the #showGame command to see the game list.

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

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

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 1

Bidding demo 2

Bidding demo 2

Bidding demo 3

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 1

Playing demo 2

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 1

Pass demo 2

Pass demo 2

This bot... lives up to its name 😅

Bot teammate behavior

Bot teammate behavior

③ Online mode

Click the "Create Room" button to create a 2-player or 3-player room.

Create room interface

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

Invite player interface

After receiving the game invitation, a player simply uses the #join command to join the game!

Join via #join command

Join via #join command

When all players are ready, click the "Start Game" button to begin Dou Dizhu!

Online ready

Online ready

Online game start

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:

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

Chat panel too prominent

Is it possible that the left panel can be dragged?

Drag the left chat panel

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

Enable slacking mode

Then use the #clean command to make yourself even cleaner.

Image

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

xechat-idea open source project