From 78d09bf906cbf76affb0490b89f12e404ac934a7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 2 May 2023 23:31:18 +0200 Subject: Beta release. --- about.html | 3 +++ play.css | 4 ---- rules.js | 13 ++++++------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/about.html b/about.html index 46f900a..84115a5 100644 --- a/about.html +++ b/about.html @@ -33,3 +33,6 @@ Cover art by Rodger B. MacGowan © 2012.
  • Cards
  • Implementation Notes + +

    +This game is in Beta testing! Please report any bugs you encounter in the jungle. diff --git a/play.css b/play.css index e6fad83..168cbd7 100644 --- a/play.css +++ b/play.css @@ -39,16 +39,12 @@ main { background-color: #777; } top: 60px; } - /* Put cards on right of map when zoomed to fit, or very wide screen */ main { grid-template-columns: 1fr min-content min-content 1fr; } #mapwrap { grid-row: 1; grid-column: 2 } #card_panel { grid-row: 1; grid-column: 3 } @media (min-width: 2200px) { main { display: grid; } } main.fit { display: grid; } -/* -main.fit #deck_outer { height: 96px; background-position: 0 -15px } -*/ /* MAP */ diff --git a/rules.js b/rules.js index 8d8e971..45d63d6 100644 --- a/rules.js +++ b/rules.js @@ -6,7 +6,7 @@ const AUTOMATIC = true -const PATROL_UNDO = true +const PATROL_RESET = false // reset Patrol per-cube undo states after hitting "Next" let states = {} let game = null @@ -3022,7 +3022,8 @@ function goto_patrol2() { else game.state = "patrol" game.op.who = -1 - game.op.undo = game.undo.length + if (PATROL_RESET) + game.op.undo = game.undo.length } function can_patrol() { @@ -3165,13 +3166,11 @@ states.patrol = { }, piece(p) { if (game.op.who < 0) { - if (PATROL_UNDO) - push_undo() + push_undo() game.op.who = p set_add(game.op.pieces, p) } else { - if (PATROL_UNDO) - pop_undo() + pop_undo() game.op.who = -1 } }, @@ -3188,7 +3187,7 @@ states.patrol = { }, next() { // Reset undo stack to beginning of Operation. - if (PATROL_UNDO) + if (PATROL_RESET) game.undo.length = game.op.undo end_patrol_move() }, -- cgit v1.2.3