lightvector / KataGo

GTP engine and self-play learning in Go
https://katagotraining.org/
Other
3.57k stars 564 forks source link

Can we obtain the final_status_list through KataGo's JSON analysis mode? #994

Closed qcgm1978 closed 3 weeks ago

qcgm1978 commented 3 weeks ago

I'm trying to use KataGo to get the dead stone information of a certain position. I saw the final_status_list dead command. How can I implement it in Python? Does this command return the captured stones?

Or how can I obtain all the live stones in a certain position through Python, excluding dead stones? It seems that sgfmill retains all the moves made.

qcgm1978 commented 3 weeks ago

I see, sgfmill can get the board position after capturing stones by using position=ascii_boards.interpret_diagram(ascii_boards.render_board(board),19). As for KataGo's dead stone evaluation, we can deal with that issue when we encounter it later.