The hosted chess server will be added to the application as an opponent player. The user will be the white side, while the server will be the black side. The game logic to be implemented here is very simple. The first move is given to the application user. When the user makes a move, they change the state of the chessboard from state X to state Y. The state of the board is represented by a FEN string. Also, they move a piece from a particular square to a particular square, which contributes to their move. When the user has completed a move, the FEN string for state X and their current move, which is obtained by concatenating the from and to squares, is sent to the server in the form of a POST request. ...
Integrating the chess engine API with a UI
Get Mobile Deep Learning with TensorFlow Lite, ML Kit and Flutter now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.