From f5db453a7c7e347d291ce4ce729b04b72be03811 Mon Sep 17 00:00:00 2001 From: Peter Hudec Date: Sun, 17 Dec 2023 14:55:35 +0100 Subject: [PATCH] added move bacck --- game.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/game.html b/game.html index 4cc4cd2..d78755c 100644 --- a/game.html +++ b/game.html @@ -69,7 +69,8 @@ - + + @@ -133,6 +134,15 @@ this.round.transport = null this.round.tief = Array.from(new Set(tief)) }, + gameBack(e) { + if (this.rounds.lenght == 0) { + return + } + last = this.rounds.pop() + this.round.police = last.police + this.round.transport = last.transport + this.round.tief = last.tief + }, listPossibleTransports(round) { let values = [] for (let item in round.tief) {