Questions tagged [stockfish]

Stockfish is a free and open-source chess engine, available for various desktop and mobile platforms.

44 questions
0
votes
1 answer

Find out if and how a chess game was finished

I'm using Stockfish 15 and Python 3.10 to build a browser chessgame. Now I'm struggling to figure out if a game is over (win, lose, draw). I have now searched for hours in forums etc. for an answer and found none. Can anyone help me further?
Luca
  • 344
  • 5
  • 18
0
votes
1 answer

How to replace the executable file when a program run on a windows is ported to mac?

The following code works fine on a PC, but how do I make it work on a mac? The problem is how do I get the link to the stockfish executable on a mac? I'm having trouble porting the line three onto a mac (pycharm). I have installed stockfish via brew…
sebastian
  • 101
  • 1
  • 4
0
votes
1 answer

Stockfish for python not working correctly, how to fix this?

I'm writing a chess puzzle solver using stockfish. I'm using the python interfacing of stockfish as described here. https://pypi.org/project/stockfish/ Like the author told, I installed the stockfish engine from the terminal of my can and ran the…
sebastian
  • 101
  • 1
  • 4
0
votes
1 answer

Top 5 moves using chess.engine.SimpleEngine

I'm having trouble with the engine encapsulation of python-chess, I would like to use the Stockfish function top = stockfish.get_top_moves(5) but it seems like there is no way to do it using chess.engine.simpleEngine, do you have any advices? I…
0
votes
0 answers

windows makefile failed on stockfish (a chess program)

It's the first time I makefile on windows, and I installed the make command via chocolatey. To some extent it works, but the compilation failed, shows: C:\Users\87952\Desktop\Stockfish-master\Stockfish-master\src>make build process_begin:…
li yixiao
  • 59
  • 4
0
votes
1 answer

Stockfish giving contradictory results on perft funtion

I'm working on a Unity chess program and I'm using stockfish to debug my moves generation algorithm by comparing the perft function results. On this position (8/2p5/3p4/1P5r/1K5k/5p2/4P1P1/1R6 b - - 0 1) with a depth of 2, Stockfish gives this…
0
votes
2 answers

How can I use Stockfish in Python so that the evaluation is continuously updated like in chess.com, instead of computed for a given amount of time?

I am using the stockfish 3.23 package in python. To get the evaluation of the chess position, I use the following code: self.stockfish = Stockfish(path="stockfish\\stockfish", depth=18, parameters={"Threads": 2, "Minimum Thinking Time":…
J.Somers
  • 49
  • 6
0
votes
2 answers

Stockfish does the same moves everytime for a given postition

Using stockfish for a chess program. It gives the same moves every time for any position. It even opens with the same moves. I'm using the python-chess library for communicating with stockfish I'm not sure if that's where the issue lies or if it's…
0
votes
0 answers

exc_bad_access (code=1 address=0x0) StockFish Swift Integration

As we follow the below step to integrate the stockfish engine 1). Setup Stockfish engine library: Original CPP Library : https://github.com/official-stockfish/Stockfish 2). Setup "nn-axxxX2.nnue" files in project and folders 3). Create wrapper…
Nik Jack
  • 87
  • 8
0
votes
0 answers

Run Cutechess-cli on heroku

Is it possible to run cutechess tournament on heroku. I can run normally run fishtest on heroku btw. I tried it with docker but its giving me qt5 error. I tried to install cutechess from sources inside docker, copied cutechess-cli files to repo it…
0
votes
2 answers

How to send data to a command line from a python script

I am creating a program that plays chess using Stockfish. I intend to play in the terminal that handles the board and the commands. I want to be able to send data to the terminal by first getting it in python, but I cannot figure how to send data to…
Mitchnoff
  • 495
  • 2
  • 7
0
votes
1 answer

AttributeError: 'Stockfish' object has no attribute 'stockfish'

I am writing a lichess bot with Stockfish. The first line of code fails with multiple error messages: Exception ignored in: Traceback (most recent call last): File…
0
votes
1 answer

QProcess can't write commands to program

So I want to open stockfish with a QProcess and write the command isready, to which stockfish replies readyok. I tried exactly the same commands in the terminal, where it works fine. When I try to do it in QProcess however, it only reads the opening…
-1
votes
1 answer

who to start as black in stockfish python

I'm trying to start the Stockfish module in Python as the black player instead of the default white. I've been looking for parameters or other information on how to do this, but haven't been able to find anything that works. Can you please help me…
1 2
3