Giter Club home page Giter Club logo

Comments (4)

ornicar avatar ornicar commented on August 12, 2024

I just tried, and saw this:

{"type":"gameState","moves":"e2e4 e7e6 b1c3 d7d5 d2d3 c7c5 f1e2 f8e7 g1f3 g8f6 e4d5 e6d5 c1d2 b8c6 e1g1 e8g8 h2h3 c8f5 a2a3 d5d4 d1e1 d4c3 d2c3 f6d5","wtime":5460,"btime":6450,"winc":1000,"binc":1000,"wdraw":false,"bdraw":false,"status":"resign","winner":"black"}

it has "status":"resign","winner":"black"

from api.

mcaap avatar mcaap commented on August 12, 2024

Looks like a weird issue. If the lichess user resigns when it is the opponent's turn to play, I only get the gameFinish and dont get the gameState response. Opponent in this case is the user of the board API.
Example game: {"type":"gameFinish","game":{"id":"XU2wWbhi"}}

But if the lichess user resigns when its his turn, I get the gameFinish followed by the gameState response as expected!

from api.

ornicar avatar ornicar commented on August 12, 2024

I tried that too and still got the gameState event.

from api.

mcaap avatar mcaap commented on August 12, 2024

Strange, I will triple-check this. Thanks for your time.

from api.

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.