feature/MAPG-235-basic-challenge-mode #48

Merged
balazs merged 43 commits from feature/MAPG-235-basic-challenge-mode into develop 2021-05-28 20:41:09 +02:00
Showing only changes of commit 636c47366a - Show all commits

View File

@ -412,6 +412,7 @@ const GameType = Object.freeze({ 'SINGLE': 0, 'MULTI': 1, 'CHALLENGE': 2 });
} }
Game.rounds = []; Game.rounds = [];
Game.scoreSum = 0;
for (var i = 0; i < Game.history.length; ++i) { for (var i = 0; i < Game.history.length; ++i) {
var round = Game.history[i]; var round = Game.history[i];
@ -682,7 +683,7 @@ const GameType = Object.freeze({ 'SINGLE': 0, 'MULTI': 1, 'CHALLENGE': 2 });
return; return;
} }
Game.history = this.response.history; Game.loadHistory(this.response.history);
Game.restrictions = this.response.restrictions; Game.restrictions = this.response.restrictions;
Game.receiveResult(this.response.position, guessPosition, this.response.result, this.response.allResults); Game.receiveResult(this.response.position, guessPosition, this.response.result, this.response.allResults);