summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-03-27 18:33:03 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:12:42 +0100
commit77d93ee3a14408eb2a0408eeb4f41df6b43f5178 (patch)
treecf0a7566e39a4561a9096d58321adc10ab4d0629
parent9af26e7a6616dab0fd09b4ac33bd663dbed67594 (diff)
downloadshores-of-tripoli-77d93ee3a14408eb2a0408eeb4f41df6b43f5178.tar.gz
Disable resigning.
-rw-r--r--play.html2
-rw-r--r--rules.js2
2 files changed, 4 insertions, 0 deletions
diff --git a/play.html b/play.html
index 16ef5e8..4116470 100644
--- a/play.html
+++ b/play.html
@@ -37,8 +37,10 @@
<div class="menu_separator"></div>
<div class="menu_item" onclick="window.open('info/tr_cards.html', '_blank')">Tripolitan Cards</div>
<div class="menu_item" onclick="window.open('info/us_cards.html', '_blank')">United States Cards</div>
+ <!-- DISABLED for tournament
<div class="resign menu_separator"></div>
<div class="resign menu_item" onclick="confirm_resign()">Resign</div>
+ -->
</div>
</div>
<div class="icon_button" onclick="toggle_zoom()"><img src="/images/magnifying-glass.svg"></div>
diff --git a/rules.js b/rules.js
index 1297bdf..7266f3a 100644
--- a/rules.js
+++ b/rules.js
@@ -2939,6 +2939,8 @@ exports.action = function (state, current, action, arg) {
}
exports.resign = function (state, current) {
+ return state;
+ // DISABLE resigning
game = state;
if (game.state !== 'game_over') {
if (current === US)