summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/rules.js b/rules.js
index a497feb..b872423 100644
--- a/rules.js
+++ b/rules.js
@@ -157,16 +157,6 @@ exports.view = function (state, player) {
return view
}
-exports.resign = function (state, player) {
- game = state
- if (game.state !== 'game_over') {
- if (player === P1)
- return goto_game_over(P2, player_name(0) + " resigned.")
- if (player === P2)
- return goto_game_over(P1, player_name(1) + " resigned.")
- }
-}
-
function goto_game_over(result, victory) {
if (result === P1)
victory = player_name(0) + " won:\n" + victory