Code Monkey home page Code Monkey logo

Comments (6)

wormtql avatar wormtql commented on July 22, 2024

这上面显示的是所有仓库里的没禁用的圣遗物在一起算的情况下的大概时间。
事实上,算的时候可以选定只算20级圣遗物,一般正常人20级圣遗物100个左右,还是比较快的。
但是算法是枚举,圣遗物一多必然会按n^5的复杂度增加计算时间

from genshin_artifact.

hjyssg avatar hjyssg commented on July 22, 2024

懂你意思了,哈哈哈。
那你这个计算考虑套装吗?
代码是哪几个文件,我想学习参观一下。

from genshin_artifact.

wormtql avatar wormtql commented on July 22, 2024

比较明确的套装buff是会考虑的,例如魔女2件套15%火伤;

比较复杂且不明确(动态)的效果在大多数目标函数里不会考虑,例如魔女4件套效果,
但是某些目标函数会考虑,例如迪卢克的目标函数会考虑魔女4的叠加效果(通过近似地整合那些buff),因为很多角色适合的配装就那么几套,输出方式也比较单一,所以具体目标函数可能会考虑一些常见配装的动态buff。

目标函数的代码在src/assets/target_functions
计算的代码在src/algorithms/attribute_target/compute_artifacts.js
顺带一提,代码写的比较烂,也没什么注释,还望见谅😄

from genshin_artifact.

hjyssg avatar hjyssg commented on July 22, 2024

image

JS里面 (!0) 为true。
改完瞬间变成一秒结束计算

from genshin_artifact.

hjyssg avatar hjyssg commented on July 22, 2024

genshin_artifact-main\src\algorithms\attribute_target\create_filter_function.js

 let helper = artifact => {
        if (!artifact.level && artifact.level !== 0) {
            return true;
        }
        return artifact.level >= config.min && artifact.level <= config.max;
    }

老哥 你能自己改一下还是我PR给你?

from genshin_artifact.

wormtql avatar wormtql commented on July 22, 2024

我自己改一下吧,感谢大佬找帮我找了bug

from genshin_artifact.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.