drakemj / AnotherChess

EECS 159A
4 stars 2 forks source link

Online functionality #18

Open drakemj opened 1 year ago

drakemj commented 1 year ago

First of all, right now I am using an account connected to my email, and the program uses a personal API access token to play games with it. Eventually I want to be using an OAuth2 session instead, which I will need to do some digging around (and we might need a server to host AnotherChess clients and forward their requests through that?)

This will also come with users being able to authenticate using their own Lichess accounts.

For reference:

Using berserk, it handles the board events stream, which sends JSON in this fashion: image Corresponding Lichess API page: image

So guessing we're going to have to do some FEN parsing, which should be handled through the pychess API.

drakemj commented 1 year ago

looks like lastMove also is sent in UCI format, so we can just update the storage object's pychess core board member and retrieveStorage().

drakemj commented 1 year ago