Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

终端DDZ

构建服务端

go build -o server main.go

构建客户端

go build -o cli client/cli.go

运行服务端

服务端监听 32123 端口

./server

运行客户端

客户端连接后需要等待,直至有3人加入游戏后,游戏自动开始

./cli -u "你的用户名" -h "服务端IP地址"

叫分

username lisi
server 192.168.1.16
用户lisi加入房间,还需等待0人
游戏开始...
你的剩余手牌为:
┌──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐
│3 |3 |3 |6 |6 |7 |7 |8 |8 |8 |9 |J |Q |K |A |2 |2 |
│♦ |♠ |♣ |♥ |♣ |♣ |♦ |♣ |♠ |♥ |♣ |♠ |♣ |♦ |♥ |♥ |♠ |
└──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘
当前分数0
请输入您的出分(0-3,回车结束):
3
玩家lisi 叫分3

出牌

lisi叫分3分,成功当选地主
底牌
┌──┐──┐──┐
│D |K |J |
│  |♥ |♣ |
└──┘──┘──┘
你的剩余手牌为:
┌──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐
│3 |3 |3 |6 |6 |7 |7 |8 |8 |8 |9 |J |J |Q |K |K |A |2 |2 |D |
│♣ |♠ |♦ |♣ |♥ |♦ |♣ |♥ |♠ |♣ |♣ |♣ |♠ |♣ |♥ |♦ |♥ |♠ |♥ |  |
└──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘
请输入您要出的出牌(回车结束):
33366

特殊牌面含义

0 ---> 10
X ---> 小王
D ---> 大王

About

控制台版本斗地主

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages