Default Score for draw (0.6666)
This commit is contained in:
parent
53c587d323
commit
48aab165dc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user