jiajunsu / calculator_of_onmyoji Goto Github PK
View Code? Open in Web Editor NEWCalculate best combinations of mitamas for game Onmyoji
Home Page: http://bbs.ngacn.cc/read.php?tid=14380045
License: GNU General Public License v2.0
Calculate best combinations of mitamas for game Onmyoji
Home Page: http://bbs.ngacn.cc/read.php?tid=14380045
License: GNU General Public License v2.0
NGA上站短victor0419发wechat号码
比如我自己的所有针女荒骷髅套组合,暴击从+85到+95,最后算下来2w6,26000C2有3亿组合,太长了。 \
但是在excel里筛选一下就发现能用的6号位就5个,4号位也是个位数,其实每个位置都没有用到多少,所以我大致想了一下:\
其他问题:
改为根据列表index与excel列名的对应关系来拼接公式中的列名
基于html5开发新UI界面
后台cm_server.py,在本机127.0.0.1开放端口,默认端口2019,通过配置文件可修改。
.\server.conf
[global]
host = 127.0.0.1
port = 2019
个人对前端不熟悉,希望有会前端的大佬帮忙做前端页面
Hi,
I'm a Japanese Onmyoji player.
And I have a hope to use this AMAZING tool in Japanese.
Can you provide separated string resources and the way to load the internationalized string resources?
(I mean that "string resources" are those for Web UI in JavaScript files...)
If you do so, I will cooperate with Japanese localization.
Please consider.
Thanks.
也不知道是什么格式问题,反正就读不进来。。
用的时候发现这个小问题,其他很好用,赞一个
-UDL 属性名1,下限值,上限值.属性名2,下限值,上限值
参数兼容性
-DL,-HL的期望参数会覆盖-UDL的同名限制
演进
在6.0版本,-DL和-HL废弃,基础生命、基础攻击和基础暴伤新增式神属性参数(-BP, --base-prop)传入
阴阳师也有mac端了 , 怎样提取御魂数据文件呢?谢谢!!!
这里的判断逻辑没考虑组合场景,需要在判断输出御魂时,接收设定的御魂套装和首领御魂
@jiajunsu 大佬能不能分享下你现在的计算逻辑, 我尝试复刻一下, 看看性能表现
可以在Mac上使用嗎?要怎麽用?
0.指定期望的组合数量n
1.从result中按照组合数量进行itertools.combination遍历,遍历范围[2,n]
2.满足独立套装的结果保存
如果期望组合数量为0,则进行[2,max]方式遍历,直到某次遍历后无任何满足条件的组合
1.完善各异常场景的返回码和信息,让UI可以有明确的信息返回
2.提供计算进度查询接口,让UI可以直接显示计算进度 done
3.提供API文档
0.选择启用多进程的核心数(不能大于CPU总核数)
1.用imap_unordered进行多进程计算
2.各进程计算结果分别保存至result-*.xls,单文件限制数量与当前保持一致
3.全部计算完成后,将result-*.xls合并为result.xls,对超出总数限制的场景提示错误,并取消文件合并
在泥潭看到大佬们的御魂计算器,特前来膜拜。本人前端开发一枚,js和python都经常使用,希望能为计算器尽一点微薄之力。如果需要,请联系微信: hanooyang
用result计算后的结果,组合序号是用逗号分割的。如果后一个刚好是3位数,excel会认为这个是一个连续的数字,逗号变成千位符而不是分隔符
使用命令安装好了依赖
$ pip install -r /Users/everlose/Downloads/calculator/requirements.txt
接下来运行
$ python3 /Users/everlose/Downloads/calculator/calculator_of_Onmyoji/cm_server.py
Traceback (most recent call last):
File "/Users/everlose/Downloads/calculator/calculator_of_Onmyoji/cm_server.py", line 17, in
from calculator_of_Onmyoji import cal_mitama
ModuleNotFoundError: No module named 'calculator_of_Onmyoji'
额?
python 3.x更完善吧,而且python2.x后年就要停止维护了
使用WebBrowser.open,在子线程内待app running后调用
不是个特别强的需求.
目前多套组合是需要一个个算的, 每次需要手动添加到已使用然后再算下一套.
这样子, 一是需要额外操作麻烦一些; 二是每一轮都取最好的御魂, 会导致后面没有合适御魂能再组一套了, 所以希望能综合考虑多套需求, 第一套可能稍弱点, 但保证能组出多套
计划的实现方式:框架+驱动(driver)
cal_suit.py,框架,负责解析driver,并让用户选择使用哪个driver,封装对cal_mitama的调用,提供若干基础函数能力。
driver/abc.py,驱动,实现分步骤多次对cal_mitama的调用,并综合判断是否满足期望目标。
结果保存为excel格式,与 result_combination格式一致
额外选项:计算所有组合(超过一定数量强制停止) 或 计算任一个满足条件的即停止计算
前置条件:调整cal_mitama,将main函数中解析args和实际计算的代码分离,cal_suit直接使用函数调用方式进行计算
如果不可写,直接报异常,提升使用体验
具体实现待讨论
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.