- Blind mode tutorial
lichess.org
Donate

How to get full FEN string of a game at a given moment of an ongoing game?

So I was exploring the API of Lichess and came across the documentation which provides the fen string of the game (https://lichess.org/api#operation/apiAccountPlaying). However I believe that the API does not offer full fen string as it does not offer whose move is to move and also the information about castling is hidden.

Is there a way to get a fen of an on going game at any given moment with all the above mentioned information?

So I was exploring the API of Lichess and came across the documentation which provides the fen string of the game (https://lichess.org/api#operation/apiAccountPlaying). However I believe that the API does not offer full fen string as it does not offer whose move is to move and also the information about castling is hidden. Is there a way to get a fen of an on going game at any given moment with all the above mentioned information?
<Comment deleted by user>
<Comment deleted by user>

Hello,

For now this endpoint only includes the board part of the FEN, what's your use case for needing the full fen?

Hello, For now this endpoint only includes the board part of the FEN, what's your use case for needing the full fen?

Well I am building a model where I would be analysing the game using a fen string. And thus I want the entire fen string

Well I am building a model where I would be analysing the game using a fen string. And thus I want the entire fen string

Why do you need ongoing games for training a model? You could use https://database.lichess.org

It'd be easier to help if you could describe what you're attending to do: https://xyproblem.info

Why do you need ongoing games for training a model? You could use https://database.lichess.org It'd be easier to help if you could describe what you're attending to do: https://xyproblem.info

okay so here is the thing. I want to create a chess bot which would evaluate an ongoing game of my account and and make move using the api of lichess. I would be using the complete fen string for this purpose to feed my engine and suggest moves on the position shared.

I know I can use stockfish on my local machine but I am planning to leverage and existing online chess engine for the purpose. Hope this helps.

okay so here is the thing. I want to create a chess bot which would evaluate an ongoing game of my account and and make move using the api of lichess. I would be using the complete fen string for this purpose to feed my engine and suggest moves on the position shared. I know I can use stockfish on my local machine but I am planning to leverage and existing online chess engine for the purpose. Hope this helps.

This topic has been archived and can no longer be replied to.