diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-01-08 18:30:45 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-01-08 18:40:39 +0100 |
commit | 9ed77a97ef768bab1a8a94b95215fa6395a344bb (patch) | |
tree | 96b790b7286492cd80350297d10d46132981b04c /rules.js | |
parent | 2f4151a8c269f19e8b40ca0e1692cbc888269548 (diff) | |
download | 1989-dawn-of-freedom-9ed77a97ef768bab1a8a94b95215fa6395a344bb.tar.gz |
remove debug logging
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -3154,7 +3154,6 @@ function score_country(country) { /* // Scoring Summary log_h4(`Power Struggle ${country}: Summary`) - console.log('game.vp_gain', game.vp_gain, 'game.vp_retain', game.vp_retain) if (game.vp_roll >= 0) log_gap('+' + game.vp_roll + ' VP from VP roll') else @@ -3818,7 +3817,6 @@ function finish_we_are_the_people() { // =========== MOVING THROUGH TURNS ============ function end_round() { - //console.log('end round , game.persistent_events', game.persistent_events) // Check if the game is over! if (game.state === 'game_over') { return @@ -3868,24 +3866,19 @@ function end_round() { card_check = card_check.sort((a, b) => a - b) if (check_duplicates(card_check)) { - console.log('duplicate cards: card check', card_check) const duplicates = find_duplicates(card_check) - console.log('game.strategy_deck', game.strategy_deck, 'game.strategy_discard', game.strategy_discard, 'game.strategy_removed', game.strategy_removed, 'game.persistent_events', game.persistent_events, 'game.communist_hand', game.communist_hand, 'game.democrat_hand', game.democrat_hand) throw new Error(`Duplicate cards detected: ${duplicates.join(', ')}`) } if (game.turn <= 3) { if (card_check.length !== 40) { - console.log('wrong number of cards in game', card_check) throw new Error(`Wrong number of cards: ${card_check.length}`) } } else if (game.turn <= 7) { if (card_check.length !== 81) { - console.log('wrong number of cards in game', card_check) throw new Error(`Wrong number of cards: ${card_check.length}`) } } else if (card_check.length !== 110) { - console.log('Entire array:', JSON.stringify(card_check)) throw new Error(`Wrong number of cards: ${card_check.length}`) } @@ -4779,7 +4772,6 @@ function vm_prompt() { } function vm_return() { - //console.log('in vm_return, game.active', game.active) // Remove temporary vm variables delete game.support_check_modifier delete game.vm_max_infl |