🃏 让斗地主回归纯粹 - 无控牌,真公平 ⚖️
3.4K
在某些知名斗地主游戏中,新手或回归玩家刚开始会获得好牌,匹配豆子少的对手,营造"连胜"的错觉。但随着游戏时间增长,牌质量明显下降,且频繁匹配高段位玩家,导致快速输光豆子。这种算法操控严重破坏了游戏的公平性和纯粹性,在本项目中:
核心理念:斗地主应该是运气与技巧的博弈,而不是算法与钱包的较量。
DouZero 是快手开源的基于深度强化学习的斗地主 AI。相比于经常出非法牌型的 LLM 而言,DouZero 能展现出更丰富的高级策略:自由出牌时主动组合复杂牌型、农民间默契配合、精准顶牌与拆牌等,对局体验更接近真人对手。
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/palemoky/fight-the-landlord/main/install.sh | bash
Windows (PowerShell):
irm https://raw.githubusercontent.com/palemoky/fight-the-landlord/main/install.ps1 | iex
运行客户端:
ddz
使用 Docker Compose(推荐):
# 1. 创建项目目录
mkdir fight-the-landlord && cd fight-the-landlord
# 2. 下载配置文件
curl -fsSL https://raw.githubusercontent.com/palemoky/fight-the-landlord/main/docker-compose.yml -o docker-compose.yml
curl -fsSL https://raw.githubusercontent.com/palemoky/fight-the-landlord/main/.env.example -o .env
# 3. 修改配置(可选)
vim .env
# 4. 启动服务
docker compose up -d
# 5. 停止服务
docker compose down
💡 推荐使用 lazydocker 管理服务
# 1. 启动 Redis
redis-server
# 2. 启动 douzero 机器人
cd douzero && uv sync && uv run python server.py
# 3. 启动服务端
go run ./cmd/server
# 4. 启动客户端
go run ./cmd/client
与常见的斗地主相同,开局叫地主后,两位农民需配合击败地主,地主则需要阻击两个农民,率先出完手牌的一方获胜。
单张: 3, K, 2
对子: 33, KK
三张: 333
三带一: 3334
三带二: 33344
顺子: 34567 (5张+)
连对: 334455 (3对+)
飞机: 333444 (两个连三+)
飞机带单: 33344456
飞机带对: 3334445566
四带二: 333345
四带两对: 33334455
炸弹: 3333
王炸: 小王大王
以下按键不区分大小写:
| 按键 | 功能 |
|---|---|
| M | 开关音乐(默认静音) |
| C | 开关记牌器(默认关闭) |
| P | Pass |
| H | 帮助 |
| 10/T | 出 10 |
| B | 小王(Black Joker) |
| R | 大王(Red Joker) |
| Esc | 返回上一页 |
欢迎贡献代码、报告问题或提出建议!
让斗地主回归纯粹 - 无控牌,真公平
Made with ❤️ by palemoky
Content type
Image
Digest
sha256:3cd7eac27…
Size
5.7 MB
Last updated
4 months ago
docker pull palemoky/fight-the-landlord