diff --git a/src/main/java/com/ntlab/irisserver/entities/Game.java b/src/main/java/com/ntlab/irisserver/entities/Game.java index be641c6..85d392b 100644 --- a/src/main/java/com/ntlab/irisserver/entities/Game.java +++ b/src/main/java/com/ntlab/irisserver/entities/Game.java @@ -81,6 +81,17 @@ //今回のゲームで使用するキーワードを追加 keywordList.put(i, randKeys.get(i));//(dno, キーワード) } + + //1ターン目の作成 + nowTurn = new Turn(); + this.turnList.add(nowTurn); + if(turnList.size()%2==0){//偶数ターンなら青い色,奇数ターンは赤色 + nowTurn.setTeam("b"); + }else{ + nowTurn.setTeam("r"); + } + this.turnList.add(nowTurn); + } public DrawingController getDrawingController() {