GithubHelp home page GithubHelp logo

xay5421 / chineseofficialmahjonghelper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from summerinsects/chineseofficialmahjonghelper

0.0 0.0 0.0 14.47 MB

国标麻将小助手——包含算番器、线下实麻计分器、番种详细说明、牌理等

License: MIT License

CMake 0.78% C++ 86.10% Makefile 0.28% Java 5.90% Objective-C 0.33% Objective-C++ 5.77% C 0.84%

chineseofficialmahjonghelper's Introduction

Chinese Official Mahjong Helper 国标小助手

  • 这是与国标麻将相关的应用,包含算番器、线下实麻计分器、番种详细说明、牌理等内容
  • 本项目主要在GitHub上提交,码云(gitee)这边不定期手动同步代码
  • 本程序以cocos2dx引擎为UI写成
  • 算番、判断听牌、听牌计算、上听数计算、有效牌计算等相关算法在Classes/mahjong-algorithm文件夹下,并配有unit_test,可提取出来单独使用
  • 由于cocos2dx引擎自身的源码较为庞大,这里就不上传了,请按如下步骤配置
  • 直接下载可执行文件,请点击这里

配置步骤

  1. 下载cocos2dx v3.17.2
  2. 下载(download)本项目(clone随意)
  3. 随便创建一个c++工程,工程名任意(命令行:cocos new -l cpp --portrait 工程名)
  4. 将在上一步创建的工程目录下的cocos2d目录拷贝到本项目Classes的同一级目录下
  5. cocos2dx引擎源码修改:将文件夹cocos2d_improvements里面的内容复制到cocos2d

配置步骤的第3、4步也可改为如下两步:(但推荐使用上面一种方式,上一种方式cocos2d目录体积更小)

  1. 将在本项目Classes的同一级目录下新建一个cocos2d目录
  2. 将解压cocos2dx引擎后的文件,除templates、tests、web外,其他全部复制到cocos2d目录

配置完成后项目的目录结构为:

  • attachment/
  • Classes/
  • cocos2d/
    • build/
    • cmake/
    • cocos/
    • docs/
    • extensions/
    • external/
    • licenses/
    • tools/
    • AUTHORS
    • CHANGELOG
    • CMakeLists.txt
    • CONTRIBUTING.md
    • download-deps.py
    • issue_template.md
    • README.md
  • cocos2d_improvements/
  • proj.android/
  • proj.ios_mac/
  • proj.linux/
  • proj.win32/
  • Resources/
  • CMakeLists.txt
  • LICENSE
  • README.md

Win32版

  • 用VS2015/VS2017/VS2019打开proj.win32目录下的ChineseOfficialMahjongHelper.sln
  • 小TIPS: 当第一次将整个项目编译完成后,可以将除ChineseOfficialMahjongHelper以外的项目(引擎源码项目)都卸载了,以节约下次编译的时间(鼠标右击项目,弹出菜单中点击Unload Project)

iOS版

  • 用xcode打开proj.ios_mac目录下的ChineseOfficialMahjongHelper.xcodeproj

Android版

  • 用Android Studio导入proj.android

仅针对本项目缩小包体的方法

  • 打开cocos/base/ccConfig.h
  • 将CC_USE_PHYSICS、CC_USE_3D_PHYSICS、CC_USE_NAVMESH、CC_USE_TIFF、CC_USE_WEBP、CC_ENABLE_SCRIPT_BINDING这几个宏定义值改为0

图片来源

  1. Ant Design 官方图标库
  2. Android自带素材

chineseofficialmahjonghelper's People

Contributors

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