summaryrefslogtreecommitdiff
path: root/src/web/app
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-10 21:23:00 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-10 21:23:00 +0900
commite6d2cbe6a3331894dca198e006c1c4c02c3f3d69 (patch)
treecf7b36537230a0c1e25f9d13ae98d569ff1c5e7f /src/web/app
parentv4088 (diff)
downloadsharkey-e6d2cbe6a3331894dca198e006c1c4c02c3f3d69.tar.gz
sharkey-e6d2cbe6a3331894dca198e006c1c4c02c3f3d69.tar.bz2
sharkey-e6d2cbe6a3331894dca198e006c1c4c02c3f3d69.zip
ループモード実装
Diffstat (limited to 'src/web/app')
-rw-r--r--src/web/app/common/views/components/othello.game.vue6
-rw-r--r--src/web/app/common/views/components/othello.room.vue1
2 files changed, 5 insertions, 2 deletions
diff --git a/src/web/app/common/views/components/othello.game.vue b/src/web/app/common/views/components/othello.game.vue
index fa3ed8d9a5..a84dcedd44 100644
--- a/src/web/app/common/views/components/othello.game.vue
+++ b/src/web/app/common/views/components/othello.game.vue
@@ -90,7 +90,8 @@ export default Vue.extend({
if (!this.game.is_ended) return;
this.o = new Othello(this.game.settings.map, {
isLlotheo: this.game.settings.is_llotheo,
- canPutEverywhere: this.game.settings.can_put_everywhere
+ canPutEverywhere: this.game.settings.can_put_everywhere,
+ loopedBoard: this.game.settings.looped_board
});
this.logs.forEach((log, i) => {
if (i < v) {
@@ -104,7 +105,8 @@ export default Vue.extend({
created() {
this.o = new Othello(this.game.settings.map, {
isLlotheo: this.game.settings.is_llotheo,
- canPutEverywhere: this.game.settings.can_put_everywhere
+ canPutEverywhere: this.game.settings.can_put_everywhere,
+ loopedBoard: this.game.settings.looped_board
});
this.game.logs.forEach(log => {
diff --git a/src/web/app/common/views/components/othello.room.vue b/src/web/app/common/views/components/othello.room.vue
index b7c28ae67d..dfdc43ef96 100644
--- a/src/web/app/common/views/components/othello.room.vue
+++ b/src/web/app/common/views/components/othello.room.vue
@@ -26,6 +26,7 @@
<div class="rules">
<mk-switch v-model="game.settings.is_llotheo" @change="updateSettings" text="石の少ない方が勝ち(ロセオ)"/>
+ <mk-switch v-model="game.settings.looped_board" @change="updateSettings" text="ループマップ"/>
<mk-switch v-model="game.settings.can_put_everywhere" @change="updateSettings" text="どこでも置けるモード"/>
<div>
<el-radio v-model="game.settings.bw" label="random" @change="updateSettings">ランダム</el-radio>