From ec176831bfbcf782eb05d825648175e1f320aa9d Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Sat, 10 Mar 2018 03:24:01 +0900
Subject: [PATCH] =?UTF-8?q?=E5=85=88=E8=A1=8C=E5=BE=8C=E6=94=BB=E3=82=92?=
 =?UTF-8?q?=E6=B1=BA=E3=82=81=E3=82=89=E3=82=8C=E3=82=8B=E3=82=88=E3=81=86?=
 =?UTF-8?q?=E3=81=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../app/common/views/components/othello.room.vue    | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/web/app/common/views/components/othello.room.vue b/src/web/app/common/views/components/othello.room.vue
index 60fdb32a45..49f199f72a 100644
--- a/src/web/app/common/views/components/othello.room.vue
+++ b/src/web/app/common/views/components/othello.room.vue
@@ -24,6 +24,11 @@
 
 	<div class="rules">
 		<mk-switch v-model="game.settings.is_llotheo" @change="onIsLlotheoChange" text="石の少ない方が勝ち(ロセオ)"/>
+		<div>
+			<el-radio v-model="game.settings.bw" label="random" @change="onBwChange">ランダム</el-radio>
+			<el-radio v-model="game.settings.bw" :label="1" @change="onBwChange">{{ game.user1.name }}が先行</el-radio>
+			<el-radio v-model="game.settings.bw" :label="2" @change="onBwChange">{{ game.user2.name }}が先行</el-radio>
+		</div>
 	</div>
 
 	<footer>
@@ -129,6 +134,14 @@ export default Vue.extend({
 				settings: this.game.settings
 			});
 			this.$forceUpdate();
+		},
+
+		onBwChange(v) {
+			this.connection.send({
+				type: 'update-settings',
+				settings: this.game.settings
+			});
+			this.$forceUpdate();
 		}
 	}
 });