diff --git a/src/main/java/com/ntlab/irisserver/entities/Game.java b/src/main/java/com/ntlab/irisserver/entities/Game.java index 85d392b..aaa6c38 100644 --- a/src/main/java/com/ntlab/irisserver/entities/Game.java +++ b/src/main/java/com/ntlab/irisserver/entities/Game.java @@ -84,14 +84,8 @@ //1ターン目の作成 nowTurn = new Turn(); + nowTurn.setTeam("r"); this.turnList.add(nowTurn); - if(turnList.size()%2==0){//偶数ターンなら青い色,奇数ターンは赤色 - nowTurn.setTeam("b"); - }else{ - nowTurn.setTeam("r"); - } - this.turnList.add(nowTurn); - } public DrawingController getDrawingController() { @@ -153,11 +147,10 @@ public void createTurn(){ nowTurn = new Turn(); - this.turnList.add(nowTurn); - if(turnList.size()%2==0){//偶数ターンなら青い色,奇数ターンは赤色 - nowTurn.setTeam("b"); - }else{ + if(turnList.size()%2==0){//偶数ターンなら青色,奇数ターンは赤色 nowTurn.setTeam("r"); + }else{ + nowTurn.setTeam("b"); } this.turnList.add(nowTurn); }