diff --git a/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java b/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java index 9c8c2a5..40d8e9f 100644 --- a/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java +++ b/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java @@ -166,12 +166,14 @@ Cell cell = game.getCell(i); boolean isOpen = cell.getIsOpen(); if(isOpen == true){ - - } - + if(cell.getColor() == "r")r++; + if(cell.getColor() == "b")b++; + } } if(card.color == "d"){ t.setEndstate(1); + }else if(r >= 6||(b >= 5)){ + t.setEndstate(1); }else if(t.getMax() <= t.getOpenListAll().size()){ game.createTurn(); }else if(card.color == "g"||(card.color != t.getTeam())){