summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/rules.js b/rules.js
index 4052db4..de921f4 100644
--- a/rules.js
+++ b/rules.js
@@ -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