summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-24 00:38:17 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-24 00:38:17 +0100
commit1e96f59510f5b54fc98e4742c2f8d7d214e518be (patch)
treeb447fae20ec55e3384deb626ec246838ff712b14
parentf7ea8affb4e97e210cbea6d30a23b362288bd12f (diff)
downloadfield-cloth-gold-1e96f59510f5b54fc98e4742c2f8d7d214e518be.tar.gz
Automatic resign menu.HEADmaster
-rw-r--r--play.html2
-rw-r--r--rules.js11
2 files changed, 0 insertions, 13 deletions
diff --git a/play.html b/play.html
index 3efa3e0..e7785b4 100644
--- a/play.html
+++ b/play.html
@@ -239,8 +239,6 @@ body.Observer #hand { display: none }
<li><a href="info/rules.html" target="_blank">Rules</a>
<li class="separator">
<li id="sort_tiles_menu" class="unchecked" onclick="toggle_sort()">Sort tiles
- <li class="resign separator">
- <li class="resign" onclick="confirm_resign()">Resign
</menu>
</details>
</div>
diff --git a/rules.js b/rules.js
index 1fc7734..7d45ace 100644
--- a/rules.js
+++ b/rules.js
@@ -189,17 +189,6 @@ exports.view = function (state, player) {
return view
}
-exports.resign = function (state, player) {
- game = state
- if (game.state !== 'game_over') {
- if (player === RED)
- goto_game_over(BLUE, RED + " resigned.")
- if (player === BLUE)
- goto_game_over(RED, BLUE + " resigned.")
- }
- return game
-}
-
function goto_game_over(result, victory) {
game.state = "game_over"
game.active = "None"