maxpumperla / deep_learning_and_the_game_of_go

Code and other material for the book "Deep Learning and the Game of Go"
https://www.manning.com/books/deep-learning-and-the-game-of-go
989 stars 390 forks source link

CH14 AlphaGo Zero:ValueError: max() arg is an empty sequence #79

Open Dirtyboy1029 opened 3 years ago

Dirtyboy1029 commented 3 years ago

Traceback (most recent call last): File "D:/Pycharm/Project/deep_learning_and_the_game_of_go-master/code/zero_test.py", line 87, in main() File "D:/Pycharm/Project/deep_learning_and_the_game_of_go-master/code/zero_test.py", line 69, in main black_move = black_agent.select_move(game) File "D:\Pycharm\Project\deep_learning_and_the_game_of_go-master\code\dlgo\zero\agent.py", line 102, in select_move next_move = self.select_branch(node) File "D:\Pycharm\Project\deep_learning_and_the_game_of_go-master\code\dlgo\zero\agent.py", line 150, in select_branch return max(node.moves(), key=score_branch) # <1> ValueError: max() arg is an empty sequence