# MahjongPointer **Repository Path**: cdmium/MahjongPointer ## Basic Information - **Project Name**: MahjongPointer - **Description**: 练习立直麻将点数计算 - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-06-21 - **Last Updated**: 2022-06-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MahjongPointer #### 介绍 可以用来练习立直麻将点数计算的软件 #### 文件架构 - 逻辑部分 (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