-
-
Notifications
You must be signed in to change notification settings - Fork 163
Get game data from server [help needed] #45
Comments
This is a good question. Currently the GoBoard class in goboard.py tracks only the current state of the board. Nothing tracks history, komi, captures, etc, not even whose turn it is. One solution is to wrap the GoBoard class in some kind of Game class that can contain a game tree and some other state. I think this would be straightforward and pretty clean but I haven't fully thought it through yet. |
@macfergus Right now my main concern is extracting the current state of the board (likely from the context of Capturing the game tree, as you described, might require some further conversation but, it is definitely something to look into for the future. |
I think the quickest way for now is to loop over
LMK if that gets you started! |
@macfergus Thanks! That helped out a lot! |
I am trying to get various gameplay data from the server in order to use it for the client. The data that I am looking for includes the raw data (which pieces are currently on the board, move history, and the score, komi, etc if available. My priority right now is the raw data so that I can add a sync mechanism to address possible game-state mismatches (#27).
Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: