We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! I am reading your book and I think I found an error in Ch 13.
Why do you reset self.root here
self.root
deep_learning_and_the_game_of_go/code/dlgo/agent/alphago.py
Line 118 in 50aa0ce
before referencing it below?
Line 119 in 50aa0ce
I don't know what was the intention of it but I believe this would be wrong since that will never be executed.
The text was updated successfully, but these errors were encountered:
found out this #42 so closing it
Sorry, something went wrong.
This code is wrong either:
if move in self.root.children: self.root = self.root.children[move] self.root.parent = None else: self.root = AlphaGoNode() return move
since else is never executed and self.root cannot reflect opponent's move so that it eventually makes illegal moves.
To solve this, there are two choices:
self.root = AlphaGoNode()
def reflect_move(self, move): if move in self.root.children: self.root = self.root.children[move] self.root.parent = None else: self.root = AlphaGoNode()
Please let me know if I'm wrong.
No branches or pull requests
Hi! I am reading your book and I think I found an error in Ch 13.
Why do you reset
self.root
heredeep_learning_and_the_game_of_go/code/dlgo/agent/alphago.py
Line 118 in 50aa0ce
before referencing it below?
deep_learning_and_the_game_of_go/code/dlgo/agent/alphago.py
Line 119 in 50aa0ce
I don't know what was the intention of it but I believe this would be wrong since that will never be executed.
The text was updated successfully, but these errors were encountered: