summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js11
1 files changed, 0 insertions, 11 deletions
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"