summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--about.html3
-rw-r--r--play.css4
-rw-r--r--rules.js13
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.
<li><a href="/andean-abyss/info/cards.html">Cards</a>
<li><a href="/andean-abyss/info/notes.html">Implementation Notes</a>
</ul>
+
+<p class="warning">
+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()
},