summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.html2
-rw-r--r--rules.js13
2 files changed, 0 insertions, 15 deletions
diff --git a/play.html b/play.html
index 6ed7ac7..5c6a948 100644
--- a/play.html
+++ b/play.html
@@ -46,8 +46,6 @@
<li><a href="info/rules.html" target="_blank">Rules</a>
<li><a href="info/cards.html" target="_blank">Cards</a>
<li><a href="info/blocks.html" target="_blank">Blocks</a>
- <li class="resign separator">
- <li class="resign" onclick="confirm_resign()">Resign
</menu>
</details>
<button onclick="toggle_blocks()"><img src="/images/earth-africa-europe.svg"></button>
diff --git a/rules.js b/rules.js
index 392e5e0..656fe0c 100644
--- a/rules.js
+++ b/rules.js
@@ -3160,19 +3160,6 @@ exports.action = function (state, current, action, arg) {
return game
}
-exports.resign = function (state, current) {
- game = state
- if (game.state !== 'game_over') {
- log("")
- log(current + " resigned.")
- game.active = "None"
- game.state = 'game_over'
- game.victory = current + " resigned."
- game.result = ENEMY[current]
- }
- return game
-}
-
function observer_hand() {
let hand = []
hand.length = Math.max(game.e_hand.length, game.s_hand.length)