• Stars
    star
    2,143
  • Rank 21,528 (Top 0.5 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 6 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

命令行斗地主、德州扑克!

Ratel

GitHub forks GitHub release (latest by date) GitHub all releases GitHub stars GitHub license Build ratel(Java with Maven) Docker Image Version (latest by date)

👉 新版:新增癞子模式,增加超时机制,完美复现欢乐斗地主,欢迎体验在线版

介绍

基于Netty实现的命令行斗地主游戏,为划水摸鱼而生~

安装

首先下载打包,确保本地安装有maven及JRE环境:

git clone https://github.com/ainilili/ratel.git
cd ratel
mvn install package

接下来分别运行 landlords-clientlandlords-servertarget 文件夹下的Jar包:

java -jar landlords-server/target/landlords-server-#{version}.jar -p 1024
java -jar landlords-client/target/landlords-client-#{version}.jar -p 1024 -h 127.0.0.1

客户端亦可直接运行,程序会自动拉取Serverlist中的公网服务器:

java -jar landlords-client/target/landlords-client-#{version}.jar

注意,实际运行中请将#{version}改为当前运行版本!

玩法介绍

在线试玩:传送门

demo

出牌规则

所有牌型:

┌──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐──┐
│3 |4 |5 |6 |7 |8 |9 |10|J |Q |K |A |2 |S |X |
│♦ |♦ |♦ |♦ |♦ |♦ |♦ |♦ |♦ |♦ |♦ |♦ |♦ |  |  |
└──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘──┘

示例:

  • 王炸:sx
  • 顺子:34567
  • 三带一:3334
  • 飞机:333444a2
  • 单张10:0或者t
  • 单张A:a或者1
  • 封顶顺子:34567890jqka
  • 不想出牌: passp
  • 退出: exit或者e
  • 更多

协议支持

  • TCP
  • Websocket

Websocket协议的地址为 ws://host:port/ratel,Websocket的端口需要在原端口基础上加1 (如果tcp端口为1024,则ws端口需要为1025)

划水俱乐部

QQ群 948365095,划水一时爽,一直划水一直爽!

生态

教学

更新日志

计划

  • 支持高级难度机器人

More

  • Serverlist.json 是当前的服务器列表, 如果你的服务器部署着当前最新版本的服务端并且分享给大家,可以通过PR提交给我们!
  • 如果您想贡献代码,非常欢迎提PR,我们将会合并优秀的代码.
  • 如果您发现了Bug,非常欢迎提Issue给我们.
  • 欢迎扩展其他语言的客户端.
  • 联系我们请发邮件到 [email protected].

More Repositories

1

ourbatis

Enhancement tools that make the development of Mybatis easier.
Java
83
star
2

snail

🎈 🎈 这里有各领域丰富且有用的知识! 🚀 http://note.isnico.com/
Java
81
star
3

defender

Role and permission management framework based on Spring-Boot
Java
55
star
4

honeycomb

A database connection pool that no one dares to use
Java
34
star
5

no-framework

A lightweight framework based on Java language development, personally realize JSON/XML parsing, service container, service framework, bytecode instrumentation, such as solution, study the cost is low, plug and play, high extensibility, the author is very active!
Java
7
star
6

noson

Json parsing tool
Java
5
star
7

ourbatis-simple

Some of Ourbatis's use cases
Java
4
star
8

java-study-demo

Some demos in the learning process
Java
4
star
9

yasso

死亡如风,常伴吾身(一个更轻量,更好用的持续集成工具)
Java
4
star
10

tianchi-race-2021

tianchi race 2021
Java
3
star
11

cache-penetrate-protection

cache penetration protection demo
Java
3
star
12

html2docx

html convert to docx.
Go
3
star
13

spring-boot-hystrix-test

Spring Boot使用Hystrix做限流和熔断
Java
3
star
14

jetbrains-activate

3
star
15

stock

A tool to search information of stock.
Go
2
star
16

mybatis-study-demo

a demo to study mybatis
Java
2
star
17

spring-boot-jacoco-test

Spring-Boot + Jacoco做测试覆盖率报表
Java
2
star
18

nlang

C
1
star
19

dsl

ddddssssllllllllllll
Java
1
star
20

acm-exercise

1
star
21

data-structure-trees-demo

Demonstration of the tree of data structures.
Java
1
star
22

soson

A super fast Json tool
Java
1
star
23

ocr-server

OCR server power by concr.
Python
1
star
24

graphql-docs

graphql docs
JavaScript
1
star
25

spring-cloud-alliance

RT
1
star
26

BitDB

bit db.
Go
1
star
27

gitblog

A small clean blog system based on github.
1
star
28

ainilili.github.io

HTML
1
star
29

byte-animation-ui

byte-animation-ui
JavaScript
1
star
30

seeker

超文本解析工具+网络爬虫工具
Java
1
star