How to use Fairy Chess with Stockfish in python for variant Antichess? #359
-
Excuse me if this is not the best place to ask question like mine, and feel free to close the issue if not asked in the right place, but please if possible redirect me to the right address. My question is how to utilize python Stockfish to support playing the game variant Antichess in python? Fairy chess is supposed to support AntiChess variant, but I am not sure how to utilize it for Stockfish? With kinds regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi, I converted the issue to a discussion as issues are reserved for feature requests and bug reports. You can ask questions either here in the discussions or on the discord server linked on the project page. Now back to the question. If by "playing" you refer only to the support of the rules, then you can set up antichess positions using pyffish and e.g. let it return the available legal moves. Perhaps the easiest way to get into how to use it is to have a look at the unit tests https://github.com/ianfab/Fairy-Stockfish/blob/master/test.py. Actually running the engine, i.e., letting it evaluate the position and determine the best move, is only possible with the native engine. If you want to build a simple script or app to play against the engine, then the usual way of doing that would be to maintain the board state using the python library (pyffish) and then communicate with a process of the native engine to request it to find a good move. |
Beta Was this translation helpful? Give feedback.
Hi, I converted the issue to a discussion as issues are reserved for feature requests and bug reports. You can ask questions either here in the discussions or on the discord server linked on the project page.
Now back to the question. If by "playing" you refer only to the support of the rules, then you can set up antichess positions using pyffish and e.g. let it return the available legal moves. Perhaps the easiest way to get into how to use it is to have a look at the unit tests https://github.com/ianfab/Fairy-Stockfish/blob/master/test.py.
Actually running the engine, i.e., letting it evaluate the position and determine the best move, is only possible with the native engine. If you want…