lightvector / KataGo

GTP engine and self-play learning in Go

Home Page:https://katagotraining.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python代码问题

zx081325 opened this issue · comments

python代码中board.py 996行是否有问题?
if libs0 == 0 and libs1 == 0 and self.wouldBeKoCapture(move0,opp) and self.wouldBeKoCapture(move1,opp) :
上面计算board[move0] 和 board[move1] 都是 EMPTY,这样wouldBeKoCapture函数一定返回False

board.py中wouldBeKoCapture实现:
def wouldBeKoCapture(self, loc, pla):
if self.board[loc] == Board.EMPTY:
return False

Thanks, this is fixed in master now. It should be != instead of ==.