Coder Social home page Coder Social logo

Comments (7)

rpdelaney avatar rpdelaney commented on June 17, 2024

I'm having trouble getting gnuchess to compile on OSX for testing. I may be able to try it on my linux machine when I get home. In the mean time, do you know of any other engines that accept or require runtime parameters?

from python-chess-annotator.

Entze avatar Entze commented on June 17, 2024

@rpdelaney I figure you could use an optional argument of stockfish for debugging. Why do you need to compile gnuchess? Aren't there binaries for MacOs?

For now there is a temporary solution: gnuchess usually comes with the gnuchessu variant which is equivalent to gnuchess -u. I was able to verify that this works.

from python-chess-annotator.

rpdelaney avatar rpdelaney commented on June 17, 2024

I might be missing something but it looks like this isn't possible with python-chess. Could a wrapper script work? I tried testing it, but gnuchess -u still doesn't give me a uci interface after I tried installing it in archlinux.

from python-chess-annotator.

niklasf avatar niklasf commented on June 17, 2024

python-chess would accept ["gnuchess", "-u"] in all places that accept "stockfish".

from python-chess-annotator.

rpdelaney avatar rpdelaney commented on June 17, 2024

If it also accepts ["stockfish"] then this is a trivial fix

from python-chess-annotator.

niklasf avatar niklasf commented on June 17, 2024

Cool. It does/should.

from python-chess-annotator.

rpdelaney avatar rpdelaney commented on June 17, 2024

Hm. seems gnuchess has a deficient implementation of the UCI spec. After 9b6ff9a :

$ python3 annotator/__main__.py -e "gnuchess -u" -f data/caruana-kasparov.pgn

An unhandled exception occurred: <class 'TypeError'>
Traceback (most recent call last):
  File "annotator/__main__.py", line 807, in <module>
    main()
  File "annotator/__main__.py", line 797, in main
    raise e
  File "annotator/__main__.py", line 790, in main
    engine, args.threads)
  File "annotator/__main__.py", line 747, in analyze_game
    node.root().headers["Annotator"] = annotator
  File "/usr/local/lib/python3.7/site-packages/chess/pgn.py", line 549, in __setitem__
    elif "\n" in value or "\r" in value:
TypeError: argument of type 'NoneType' is not iterable

Stand by......

from python-chess-annotator.

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.