Comments (7)
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.
@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.
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.
python-chess would accept ["gnuchess", "-u"]
in all places that accept "stockfish"
.
from python-chess-annotator.
If it also accepts ["stockfish"]
then this is a trivial fix
from python-chess-annotator.
Cool. It does/should.
from python-chess-annotator.
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)
- -h does not work HOT 2
- Insert human readable commentary HOT 9
- add ?!, ? and ?? HOT 2
- Always annotate the final position HOT 2
- Logging messages should not use string formatting HOT 1
- disregard
- Setting ACPL headers on a root node fails due to new validation in python-chess
- Use reversed() instead of this weird inverted manual for loop stuff HOT 3
- Use reversed(node.mainline()) instead of manually looping backward all the time HOT 1
- Close the eco json file
- Leftover gnuchess process
- Don't use "assert" for failure mode detection
- Broken with recent versions of python-chess
- Zero division error in ACPL calculations
- Division by zero if ply_count = 0 HOT 4
- notice of new project HOT 2
- A few questions about how this works HOT 6
- ZeroDivisionError: float division by zero -- seems to be a different one from reported previously HOT 12
- How to save the result? HOT 4
- Constantly opens a new Stockfish.exe. Because of this, in the task manager, a lot of open stockfish.exe. The program apparently on each batch opens the Stockfish anew. And the old process does not close. How to solve this problem? Because of this, the RAM is overflowed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-chess-annotator.