Git Product home page Git Product logo

ratel's Introduction

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].

ratel's People

Contributors

ainilili avatar marmot-z avatar eldersjavas avatar doveeeee avatar woshidijia avatar abbychau avatar lazycreeper avatar littledeng1 avatar doyutu avatar zuofuhong avatar gooddayday avatar kasuganosoras avatar erichetti avatar mujint avatar koorimoe avatar dependabot[bot] avatar balalals avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.