Coder Social home page Coder Social logo

chess-logic's Introduction

###命名规则

  • handler 为消息处理器,用于接受消息
  • controller 为游戏对象的处理器
  • manager 管理器,用于管理各个模块,应该为全局唯一,可使用单例模式由spring进行管理, 如排行榜管理器、场景管理器

###设计原则

  • 将动态数据(需要持久化,或者内存中使用的)与静态数据(通过配置获得的)分开。
  • 先以一种简单可行的方式将游戏快速的设计出来,后期需要根据高并发扩展时再进行扩展

###消息类型约定

  • 约定请求消息command使用单数,返回消息使用双数
  • 1000 登录模块使用
  • 1002 提示模块使用
  • 1003 场景模块使用
  • 1100 房间模块使用
  • 1200 战斗模块使用

###进度安排

  • 2017-8-10 ~ 2017-8-15杨明伟将服务器功能初步完成,可进行匹配战斗

chess-logic's People

Contributors

ymw520369 avatar

Stargazers

 avatar  avatar

Watchers

 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.