summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts6
1 files changed, 1 insertions, 5 deletions
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;