Giter Club home page Giter Club logo

fat-doudizhu's Introduction

斗地主客户端 layabox - typescript(ts)

此客户端源自 WangQingye白鹭客户端,用Layabox重写的,并修复了其中一些牌型判断的问题。

使用

  1. 安装nodejs和layabox环境,这个自行百度吧。我安装的node版本是8.9.3,layabox是1.7.18。

  2. 下载斗地主服务端,原版的在这里。 我对原版进行了fork,见这里。我做了一些修复,之后还会有其他的调整,所有的这些都会提pull request,但是也可能不会被merge。

  3. 在服务端目录,运行 node app.js,开启服务端。

  4. 下载此源码,导入layabox,编译运行即可。

如需更改端口。服务端在 socket/websocket.js中修改,客户端在src/Config/Local.ts中修改。

可发布成H5和微信小游戏。

TODO

  1. 增加服务端对牌型的判断。已在服务端分支实现,见这里
  2. 游戏中掉线超时处理。
  3. 房间内一局结束后,继续进行下一局。

fat-doudizhu's People

Contributors

tianhe1986 avatar

Watchers

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