Questions tagged [lichess]

https://lichess.org/ is an online chess platform

Links

21 questions
4
votes
1 answer

Is it possible to save party analysis at lichess.org

Is it possible to save party analysis at lichess.org? Let me describe the scenario: my son uses lichess analysis board to analyse his parties played above, also it allows to "convert" hand-written parties to PGN files. It would be very helpful if…
Murat Erkenov
  • 694
  • 1
  • 7
  • 15
3
votes
0 answers

No module named 'lichess': I can't import lichess.api

I am trying to use the lichess python API, but I cannot import it into python. I used the pip command and made sure it was updated and various other attempts, but it still gives me the error that says 'no module named 'lichess'' import…
3
votes
1 answer

Can i transfer data between a Cordova Android app & an embedded device (chess board)?

I am trying to transfer data between a chess board (see attached pic) and a cordova based Android chess game(lichess). Both the devices will be connected via USB cable. Is it possible that a cordova app for android can have access to the USB…
Suny
  • 1,175
  • 1
  • 10
  • 27
3
votes
0 answers

Received invalid Sec-WebSocket-Accept response

I'm trying to connect to lichess web socket server with a very typical piece of code: let request = NSMutableURLRequest(url: URL(string: "wss://socket.lichess.org/")!) self.webSocket = SRWebSocket(urlRequest: request as URLRequest!) …
Alexander Perechnev
  • 2,797
  • 3
  • 21
  • 35
2
votes
1 answer

Can react-chessground work with chessground@8 or above?

I created a react app where react-chessground works with chessground@7.16.13 And now I'm tryin to upgrade chessground to version 8.2.1, but there are 8 errors like: ERROR in ./node_modules/react-chessground/node_modules/chessground/chessground.js…
Amir
  • 43
  • 6
1
vote
2 answers

Create game explorer with pgn (like lichess explorer)

currently I am looking with python to do a failure "ia" which gives me the opening with the best success rate (using the grand master parts of the lichess database) with a minmax and by taking only the moves with at least 100 position already played…
1
vote
1 answer

What is game state Moves evaluation in chess? why is stockfish API with python giving me rubbish evaluations

I am analyzing a chess game PGN File. I used the stockfish 13 API to perform game moves Analysis but, the engine is computing some rubbish evaluation scores. the same game gets an evaluation close to 0 for e2e4. but the output of my python code…
skwolvie
  • 139
  • 12
1
vote
0 answers

How to create a Lichess-like engine-to-player communication API in Python, Python-chess and Flask for my own chess based website?

So, this is for a big college project that I am trying to create a website with the player being able to login, play with an engine (which would run locally on a team mate's PC or a server) then display the output, let the player play moves and…
1
vote
0 answers

Stockfish.js leaks memory

I am writing a Lichess bot using JavaScript (Node), which analyses chess positions using Stockfish.js (https://www.npmjs.com/package/stockfish). Since multiple games can be played by bots simultaneously, I figured it would make sense for each game…
Victor Durojaiye
  • 162
  • 1
  • 10
1
vote
1 answer

How do you format an Oauth 2.0 request to include scopes

I am writing a PHP web program that needs to access and edit people's info on lichess.org. Their api uses Oauth 2.0 to do this. The problem is no matter what I put in the request it only seems to request public profile information:redirect page…
1
vote
1 answer

Lichess API - I get HTTPError 400 when trying to stream game state

I am writing an application that interacts with Lichess. However when I use the API to get game state, I must use for event in client.bots.stream_game_state(game_id): as provided by the documentation. In fact, this is exactly the code they use in…
David
  • 217
  • 4
  • 14
0
votes
0 answers

ndjson: TypeError: __init__() got an unexpected keyword argument 'encoding'

When I run the Flask app on my home PC (python 3.10.5), everything works fine. I try to run the same code on pythonanywhere using Python 3.10 and get error: Traceback (most recent call last): File "/home/speedclub/mysite/speedclub.py", line 90,…
0
votes
0 answers

Lichess bot can't make moves to the API

I have an issue with the lichess API, where my bot cannot play a move in the game where it is being challenged. It can accept the challenge, but not play in it. What am I doing wrong? # Code to accept the challenge/make moves # Start playing the…
0
votes
1 answer

How to use stdin when stdin is redirected?

I am trying to make a CLI interface for lichess using lichess-bot link: https://github.com/ShailChoksi/lichess-bot Moves are made by making a class that extends MinimalEngine and giving it a search method which returns a move to make. For example…
0
votes
2 answers

Extracting games from lichess public api

I'm trying to download and analyse my chess games that i played on lichess.org for a project, and as per their public api they state that the response should be returned in ndjson format, however using the .json() method on the response body yields…
1
2