summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.html2
-rw-r--r--rules.js16
2 files changed, 0 insertions, 18 deletions
diff --git a/play.html b/play.html
index 35e6e22..f3008dd 100644
--- a/play.html
+++ b/play.html
@@ -31,8 +31,6 @@
<li><a href="info/notes.html" target="_blank">Notes</a>
<li><a href="info/rules.html" target="_blank">Rules</a>
<li><a href="info/cards.html" target="_blank">Cards</a>
- <li class="resign separator">
- <li class="resign" onclick="confirm_resign()">Resign
</menu>
</details>
</div>
diff --git a/rules.js b/rules.js
index 44bd395..1d5d3e1 100644
--- a/rules.js
+++ b/rules.js
@@ -3452,22 +3452,6 @@ exports.action = function (state, current, action, arg) {
return game;
}
-exports.resign = function (state, current) {
- game = state;
- if (game.state !== 'game_over') {
- log_sep();
- log(current + " resigned.");
- game.active = "None";
- game.state = 'game_over';
- game.victory = current + " resigned.";
- if (current === PERSIA)
- game.result = GREECE;
- else
- game.result = PERSIA;
- }
- return game;
-}
-
exports.view = function(state, current) {
game = state;