From 6efd2c49f98baa9f860cc56f206896f76a84711e Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 28 Sep 2024 12:08:39 +0100 Subject: Debugging Kremlin Coup --- play.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/play.js b/play.js index d0c2ee6..a9d21ae 100644 --- a/play.js +++ b/play.js @@ -200,7 +200,7 @@ function is_action(action) { function on_log(text) { // eslint-disable-line no-unused-vars - console.log('on_log called') + let p = document.createElement("div") @@ -313,7 +313,7 @@ function on_update() { if (piece.demInfl > 0) { dem_marker.style.display = 'block'; dem_number.style.display = 'block'; - console.log('piece', piece, 'space', space) + if(check_dem_control(piece, space)){ dem_marker.classList.add('controlled') dem_number.classList.add('outlined_text') @@ -362,7 +362,7 @@ function on_update() { marker.style.display = 'block' times_held.classList.add('outlined_text') } else if (view.times_held[country] > 0 ) { - console.log('setting ', country) + //console.log('setting ', country) marker.classList.add('held') marker.style.display = 'block' times_held.innerHTML = view.times_held[country] -- cgit v1.2.3