summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-24 00:38:46 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-24 00:38:46 +0100
commit0b979b1575eab57bfe5f26b1dd34e48004221f58 (patch)
treec5811215d0e762a93344b2677d803d4a9c5e3a3a /rules.js
parentf1c11210baff104de96b106134ce400ff82a6e65 (diff)
downloadhammer-of-the-scots-0b979b1575eab57bfe5f26b1dd34e48004221f58.tar.gz
Automatic resign menu.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js13
1 files changed, 0 insertions, 13 deletions
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)