Default Score for draw (0.6666)

This commit is contained in:
Dominik Moritz Roth 2022-04-15 17:17:16 +02:00
parent 53c587d323
commit 48aab165dc

View File

@ -289,7 +289,9 @@ class Node():
def _calcScore(self, player): def _calcScore(self, player):
winner = self.getWinner() winner = self.getWinner()
if winner!=None: if winner!=None:
if winner==player: if winner==-1:
self._scores[player] = 2/3 # draw
elif winner==player:
self._scores[player] = 0.0 self._scores[player] = 0.0
else: else:
self._scores[player] = 1.0 self._scores[player] = 1.0