summaryrefslogtreecommitdiff
path: root/src/web
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/web
parentv4086 (diff)
downloadmisskey-c8bf30d0d8d8d88ab738f6377ad9b65c961b5d4f.tar.gz
misskey-c8bf30d0d8d8d88ab738f6377ad9b65c961b5d4f.tar.bz2
misskey-c8bf30d0d8d8d88ab738f6377ad9b65c961b5d4f.zip
どこでも置けるモード実装
Diffstat (limited to 'src/web')
-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 26612daeac..fa3ed8d9a5 100644
--- a/src/web/app/common/views/components/othello.game.vue
+++ b/src/web/app/common/views/components/othello.game.vue
@@ -89,7 +89,8 @@ export default Vue.extend({
logPos(v) {
if (!this.game.is_ended) return;
this.o = new Othello(this.game.settings.map, {
- isLlotheo: this.game.settings.is_llotheo
+ isLlotheo: this.game.settings.is_llotheo,
+ canPutEverywhere: this.game.settings.can_put_everywhere
});
this.logs.forEach((log, i) => {
if (i < v) {
@@ -102,7 +103,8 @@ export default Vue.extend({
created() {
this.o = new Othello(this.game.settings.map, {
- isLlotheo: this.game.settings.is_llotheo
+ isLlotheo: this.game.settings.is_llotheo,
+ canPutEverywhere: this.game.settings.can_put_everywhere
});
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 745074b17a..b7c28ae67d 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.can_put_everywhere" @change="updateSettings" text="どこでも置けるモード"/>
<div>
<el-radio v-model="game.settings.bw" label="random" @change="updateSettings">ランダム</el-radio>
<el-radio v-model="game.settings.bw" :label="1" @change="updateSettings">{{ game.user1.name }}が黒</el-radio>