anzemur / chess-api

Chess API: REST API for playing chess and storing highscores
MIT License
43 stars 24 forks source link

"List possible moves" wrong in documentation #1

Closed conema closed 3 years ago

conema commented 5 years ago

In the documentation is not indicated that the "list possible moves" request should have the game_id on the request body. Link to the API page

Is there a simple way to know the pieces name by their location?

Thanks for your work!

anzemur commented 5 years ago

Hello, yes I should add this to the docs. But in general every request that is connected to the specific game should have game_id as the parameter.

Currently there is no route implemented for getting single piece by its location on the board, but it can be easly implemented into the api usign chess.js .get(square) method.

A complete more robust rewrite with some additional options of the api should happen in the fututre if I have some spare time.

Best regards, Anze