Code Monkey home page Code Monkey logo

Comments (5)

johndoknjas avatar johndoknjas commented on June 6, 2024

Many of the custom parameters you chose in your code for #94 don't make the engine stronger. E.g., you're using the minimum for Threads, Skill Level, Hash. One or more of these could have an influence on engine speed. E.g., lowering Skill Level makes SF increase the value for MultiPV, in order for it to have sub-optimal moves to pick from.

Also, you're using depth 9 for the python chess module, but that's still very low. Running Stockfish directly, it gets to depth 9 in an instant. So it'd be better to test both python modules using a depth value of at least 20. What was the time difference when you did your tests?

from stockfish.

sugizo avatar sugizo commented on June 6, 2024

already tried different parameter, and
the default

import stockfish 
stockfish.get_parameters()
    stockfish = Stockfish(path = engine, depth = 18, 
                          parameters = {'Contempt': 0, 'Debug Log File': '', 'Hash': 1024, 
                                        'Min Split Depth': 0, 'Minimum Thinking Time': 20, 
                                        'Move Overhead': 10, 'MultiPV': 1, 'Ponder': 'false', 
                                        'Skill Level': 20, 'Slow Mover': 100, 'Threads': 1, 
                                        'UCI_Chess960': 'false', 'UCI_Elo': 1350, 
                                        'UCI_LimitStrength': 'false'} )

but still got the same result, that's why before post an issue, already try to mix some parameter value and perhaps can change the result, but the result is same (stockfish python module take longer)

question
what is the parameter both of chess and stockfish, to get the same result ?

from stockfish.

johndoknjas avatar johndoknjas commented on June 6, 2024

For taking longer, do you mean looping forever, or just slower in general?

To get comparable results, I'd recommend not sending in any parameters for the python stockfish module, just set depth to something like 25. For python chess, maybe just set hash equal to 1024, and also depth to 25. Use defaults for everything else.

from stockfish.

sugizo avatar sugizo commented on June 6, 2024

in this issue is talk about just stockfish engine not it's derivates

$ ~/Downloads/chess/engine/stockfish -v
Stockfish 11 64 by T. Romstad, M. Costalba, J. Kiiski, G. Linscott

so it's never looping forever when using stockfish engine with stockfish python module, it's just slower comparable when the same stockfish app above version 11 is used by chess module

from stockfish.

kieferro avatar kieferro commented on June 6, 2024

Hello, this project is no longer maintained in this repo but on this fork. (For more information about this please look here).

It is not possible to transfer the entire discussion here. However, when we go through the remaining issues, we will get back to you and either create a proxy issue or find another solution.

Just be aware that the project will no longer be updated here.

from stockfish.

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.