From 50d95d906d7d782d155e75635be4d637c1ccfb25 Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Mon, 30 Dec 2024 22:44:07 +0100 Subject: fix click fronts and remove console logs --- rules.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'rules.ts') diff --git a/rules.ts b/rules.ts index ff2541d..2ea5642 100644 --- a/rules.ts +++ b/rules.ts @@ -198,7 +198,6 @@ export function action( action: string, arg: unknown ) { - console.log('action', player, action, arg); if (action !== 'undo') { state.undo = push_undo(); } @@ -1122,13 +1121,12 @@ states.choose_final_bid = { const faction = get_active_faction(); game.selected_cards[faction].push(c); const number_selected = game.selected_cards[faction].length; - console.log('number selected', number_selected); + const number_hand = game.hands[faction].length; if ( number_selected === 3 || (number_hand < 4 && number_selected === number_hand - 1) ) { - console.log('proceed'); resolve_active_and_proceed(); } else { next(); @@ -1796,7 +1794,6 @@ states.swap_card_tableau_hand = { resolve_spend_hp(); }, card(c: CardId) { - console.log('card', c); const faction = get_active_faction(); const selected_cards = game.selected_cards[faction]; @@ -2186,7 +2183,6 @@ function end_of_year() { if (is_won) { log('The war is won!'); } else { - console.log('The war is lost'); game_over('None', 'The war is lost. All Players lose the game!'); resolve_active_and_proceed(); return; -- cgit v1.2.3