Giter Site home page Giter Site logo

ratel's Introduction

项目介绍

斗地主我想大家都会玩吧,但是不知道大家有没有在命令行内玩过斗地主。

这个项目是基于Netty实现的一款命令行斗地主游戏,在下班后或者工作闲暇之余,你都可以肆无忌惮的在命令行中玩斗地主~

安装

下载打包(该项目需要一些Java基础,需要确保您的机器拥有JVM环境)

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

游戏开始...

玩法介绍

你可以创建一个私服, 或者加入公网服务器 39.105.65.8(-h参数指定对应的服务器)

demo

出牌

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

这是按照从小打大的规则将3到大王排序后的结果

如果你想出顺子

┌──┐──┐──┐──┐──┐
│7 |8 |9 |10|J |
│♦ |♦ |♦ |♦ |♦ |
└──┘──┘──┘──┘──┘

你可以输入 7890j or 789tj

如果你想出王炸

┌──┐──┐
│S |X |
│  |  |
└──┘──┘

你可以输入 sx

这是所有牌的别名映射规则

poker-> │3 |4 |5 |6 |7 |8 |9 |10   |J  |Q  |K  |A    |2 |S  |X  |
alias-> │3 |4 |5 |6 |7 |8 |9 |T t 0|J j|Q q|K k|A a 1|2 |S s|X x|
  • 如果本回合内你不想出牌,可以输入 pass
  • 如果本回合内你想退出游戏,可以输入 exit

游戏规则

正统的欢乐斗地主~

加入划水俱乐部

QQ群 948365095,寻找一起划水的玩伴!

更新

Blog

最后

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

ratel's People

Contributors

ainilili avatar abbychau avatar zuofuhong avatar doyutu avatar kasuganosoras avatar erichetti avatar koorimoe avatar

Watchers

James Cloos 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.