Fixed GetFinished

This commit is contained in:
mig 2017-04-06 17:29:48 +02:00
parent de404480e4
commit d7b314b7de

View file

@ -445,6 +445,11 @@ JocGame.prototype.EvaluateBoard = function() {
}
JocGame.prototype.GetFinished = function() {
this.EvaluateBoard();
if(this.mBoard.mFinished)
return this.mBoard.mWinner;
else
return 0;
this.SetWho(-this.mWho);
var moves=this.mBoard.mMoves;
this.EvaluateBoard();