summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-03-20 22:55:12 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitfa73f2edd6c803656c22595b919fa278a5e8387e (patch)
tree30d86ddf28f43af3c0da1ef54fee0ff0772d3679
parent2f226e47deea5242687cfc332ba03aea0e56057d (diff)
downloadwilderness-war-fa73f2edd6c803656c22595b919fa278a5e8387e.tar.gz
Remove debugging code.
-rw-r--r--rules.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/rules.js b/rules.js
index 013f4d4..18a35fb 100644
--- a/rules.js
+++ b/rules.js
@@ -1998,7 +1998,6 @@ function start_action_phase() {
}
function end_season() {
-
if (game.british.hand.length > 0)
game.british.held = 1;
else
@@ -2043,12 +2042,6 @@ function end_action_phase() {
clear_undo();
game.count = 0;
- // TODO: should not be needed! (but we may have forgotten some place where it should happen)
- for (let p = first_friendly_leader; p <= last_friendly_leader; ++p) {
- if (count_pieces_in_force(p) > 1)
- console.log("FORGOT TO UNSTACK", piece_name(p));
- }
-
if (!enemy_player.passed && enemy_player.hand.length > 0) {
console.log("END ACTION PHASE - NEXT PLAYER");
set_active_enemy();