Skip to content
Snippets Groups Projects
Commit 1cb1e58b authored by giovanni.novati@studenti.unimi.it's avatar giovanni.novati@studenti.unimi.it
Browse files

REFACTORING: utilizzato un metodo preesistente in estabilishTurnWinner

parent 530f4997
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ public class Briscola {
return otherPlayer(firstCardPlayer);
}
if(second.getSuit() == getBriscola())
if(isBriscola(second))
return otherPlayer(firstCardPlayer);
return firstCardPlayer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment