Browse Source

4gewinnt: updated playChip

4gewinnt
Steffen Helmke 3 years ago
committed by Lorenz Hohmann
parent
commit
10c67f8bcb
  1. 4
      src/main/java/de/tims/viergewinnt/ai/Logic.java

4
src/main/java/de/tims/viergewinnt/ai/Logic.java

@ -21,7 +21,9 @@ public class Logic {
//add board update
updateGui(playfield);
testForWin(playfield, player);
if(testForWin(playfield, player)) {
calcScore(playfield);
}
currentPlayer = (player % 2) + 1;
return 0;
}

Loading…
Cancel
Save