summaryrefslogtreecommitdiff
path: root/src/api/stream
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-10 18:22:54 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-10 18:22:54 +0900
commitc8bf30d0d8d8d88ab738f6377ad9b65c961b5d4f (patch)
tree0522015b922cd3df410339f4e72785fe16b2f366 /src/api/stream
parentv4086 (diff)
downloadsharkey-c8bf30d0d8d8d88ab738f6377ad9b65c961b5d4f.tar.gz
sharkey-c8bf30d0d8d8d88ab738f6377ad9b65c961b5d4f.tar.bz2
sharkey-c8bf30d0d8d8d88ab738f6377ad9b65c961b5d4f.zip
どこでも置けるモード実装
Diffstat (limited to 'src/api/stream')
-rw-r--r--src/api/stream/othello-game.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/api/stream/othello-game.ts b/src/api/stream/othello-game.ts
index cc936805ba..05f244f769 100644
--- a/src/api/stream/othello-game.ts
+++ b/src/api/stream/othello-game.ts
@@ -125,7 +125,8 @@ export default function(request: websocket.request, connection: websocket.connec
//#region 盤面に最初から石がないなどして始まった瞬間に勝敗が決定する場合があるのでその処理
const o = new Othello(map, {
- isLlotheo: freshGame.settings.is_llotheo
+ isLlotheo: freshGame.settings.is_llotheo,
+ canPutEverywhere: freshGame.settings.can_put_everywhere
});
if (o.isEnded) {
@@ -166,7 +167,8 @@ export default function(request: websocket.request, connection: websocket.connec
if (!game.user1_id.equals(user._id) && !game.user2_id.equals(user._id)) return;
const o = new Othello(game.settings.map, {
- isLlotheo: game.settings.is_llotheo
+ isLlotheo: game.settings.is_llotheo,
+ canPutEverywhere: game.settings.can_put_everywhere
});
game.logs.forEach(log => {