一个使用蒙特卡洛方法(即多次抽卡)估算手游抽卡概率的估算器。A probility estimator for gacha games.
- 通过git下载本仓库。Download this repository using git.
git clone https://github.com/zznewclear13/GachaEstimator.git
git submodule update --init --recursive
-
双击
cmake.bat
配置VS工程。Double clickcmake.bat
to configure Visual Studio project. -
使用Visual Studio打开位于
build/
目录下的Gacha Estimator.sln
。Underbuild/
directory, openGacha Estimator.sln
using Visual Studio. -
点击
Build->Build Solution
开始构建。ClickBuild->Build Solution
to start building. -
在
binary/Debug
或者binary/Release
下即可找到构建好的GachaEstimator.exe
。GachaEstimator.exe
will be built tobinary/Debug
orbinary/Release
. -
双击
genshin.bat
即可估测原神抽卡概率。Double clickgenshin.bat
to estimate gacha probability in Genshin Impact.
通过自定义命令行也能运行此估算器。You can run this estimator through custom command line arguments.
- -TotalSims: 模拟次数,默认1000
- -MaxPulls: 最大抽卡次数,每一次模拟最大抽卡次数,默认100
- -BaseProb: 基础概率
- -SoftPity: 软保底,软保底触发后会逐渐增加概率
- -SoftPityProb: 触发软保底后每次抽卡增加的概率
- -HardPity: 硬保底,硬保底触发时当场判断是否抽中
- -HardPityProb: 硬保底抽中概率(硬保底也能歪?)
- -EarlyExit: 当抽中SSR后停止抽卡
使用nanothread进行多线程模拟抽卡。Multi-thread simulation based on nanothread.
MIT License
Copyright (c) 2023 zznewclear@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.