From 5fea8ea3d372167a251bfbfaa764ec74b0e7fdf6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 2 Jul 2023 15:50:45 +0200 Subject: Remove special case view for game over. --- play.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/play.js b/play.js index b9a4870..16fb4e4 100644 --- a/play.js +++ b/play.js @@ -498,8 +498,6 @@ function hide_block(element) { } function is_known_block(who) { - if (view.game_over && player === 'Observer') - return true if (block_owner(who) === player) return true let where = view.location[who] @@ -509,8 +507,6 @@ function is_known_block(who) { } function is_visible_block(where, who) { - if (view.game_over && player === 'Observer') - return true if (where === LEVY) return block_owner(who) === player return true @@ -533,10 +529,7 @@ function update_map() { if (is_known_block(b)) { let image = " block_" + b let known = " known" - let jupiter = "" - if (set_has(view.traitor, b) && view.game_over) - jupiter = " jupiter" - element.classList = block_color(b) + known + " block" + image + moved + jupiter + element.classList = block_color(b) + known + " block" + image + moved update_steps(b, element, true) } else { let jupiter = "" -- cgit v1.2.3