Jump to content

Pokemmo Breeding Calculator / Pokemmo 5v计算器


Recommended Posts

本计算器用于计算给定数量1v宝可梦下培育5v宝可梦的树状图。

code:Heriploe/pokemmoBreed (github.com)

下载文件,安装python,安装numpy、cv2包。控制台进入文件夹输入py main.py即可运行。

可修改main.py中的以下内容:

transDict = {0: "HP  ", 1: "DEF ", 2: "SATK", 3: "SDEF", 4: "SPD "}  
maleSet = [0, 3, 1, 4, 0]  
femaleSet = [2, 1, 1, 2, 2]

其中,transDict为输出的属性名,更改请凑满4个字符。maleSet和femaleSet分别代表对应属性宝可梦的数量。

公母宝可梦至少均为8只,由于采用随机算法,当数量较少时需要多次运行或修改Func.py中的tolerance属性。

 

输出的img.png如下:

img.thumb.png.83d4e412539484de0c04a96e76f31e5d.png

其中最下行代表1v宝可梦的属性及性别。

 

当前缺陷:仅适用5v,未控制性格,无法将已有2v、3v纳入计算。

希望有大佬改进。

Edited by Tenseo
Link to comment
  • Tenseo changed the title to Pokemmo Breeding Calculator / Pokemmo 5v计算器

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.