# MahjongPointer **Repository Path**: linlexiao/MahjongPointer ## Basic Information - **Project Name**: MahjongPointer - **Description**: 练习立直麻将点数计算 - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 13 - **Forks**: 2 - **Created**: 2022-06-06 - **Last Updated**: 2024-06-21 ## Categories & Tags **Categories**: games **Tags**: None ## README # MahjongPointer # **已停止维护** > 请移步项目网页版 > > **网页版仓库** > [gitee](https://gitee.com/linlexiao/mahjong-vue) > [gituhb](https://github.com/linlexiao0/mahjong-vue) > > [网页版地址](https://maj.multigu.cn) ### 介绍 可以用来练习立直麻将点数计算的软件 **牌画素材来自 [立直麻将百科](http://wiki.lingshangkaihua.com/mediawiki/index.php/%E9%A6%96%E9%A1%B5)** ### 文件架构 - 逻辑部分 (logic) 1. `pai` 提供对于麻将牌的基本定义 2. `yaku` 对所有役种的定义 3. `calculate` 对给定的手牌,计算点数 4. `problem` 出题模块 - UI 部分 (ui) 1. `pailabel` 显示牌的控件 2. `ansedit` 答案输入框,提供捕获回车功能 3. `mainwindow` 程序主窗口 4. `fureferncewidget` 符数速查表 5. `pointreferncewidget` 点数速查表 - 对话框 (dialog) 1. `importproblemdialog` 导入问题对话框 2. `exportproblemdialog` 导出问题对话框 3. `customproblemdialog` 自定义问题对话框(未完成) ### 编译 **请使用Qt5.14/5.15编译,其他版本暂不支持。** - Windows TODO - Linux 安装 Qt 5.15 - Ubuntu 22.04 ```bash sudo apt-get install qt5-qmake qtbase5-dev ``` - Ubuntu 20.04 ```bash sudo add-apt-repository ppa:savoury1/qt-5-15 sudo apt-get install qt5-qmake qtbase5-dev ``` - 源码编译 参考 https://www.qt.io/offline-installers 编译MahjongPointer ```bash git clone https://gitee.com/linlexiao/MahjongPointer.git cd MahjongPointer mkdir build; cd build qmake .. make ``` 运行MahjongPointer ```bash ./MahjongPointer ``` - MacOS TODO ### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request 5. 代码风格(可选) 使用 `clang-format` 进行格式化,采用如下风格: ``` BasedOnStyle: google IndentWidth: 4 AccessModifierOffset: -3 ```