deep_learning_and_the_game_of_go icon indicating copy to clipboard operation
deep_learning_and_the_game_of_go copied to clipboard

How to compute the winner? would you please explain the implementation in the scoring.py?

Open computer-idol opened this issue 4 years ago • 3 comments

computer-idol avatar Jan 15 '20 15:01 computer-idol

I'm interested in the game of go and want to have my own AI.Now I'm very lucky to read your wonderful book---Deep Learning and the Game of Go. The problem is that I don't seem to see the explanation of an algorithm that can compute the winner in your book,which is important for the game of go. Can you explain the implementation? The link address is https://github.com/maxpumperla/deep_learning_and_the_game_of_go/blob/chapter_4/code/dlgo/scoring.py

computer-idol avatar Jan 15 '20 15:01 computer-idol

https://github.com/maxpumperla/deep_learning_and_the_game_of_go/blob/chapter_4/code/dlgo/scoring.py#L132

the result is computed there, and you can then just call winner on this GameResult

maxpumperla avatar Jan 15 '20 19:01 maxpumperla

when the game is over,many dead stones(don't have two eyes) may still remain in the board.How to identify them? remove them by hand first?

computer-idol avatar Jan 16 '20 02:01 computer-idol