Browse Source

add legalMove-SameValue

main
fdai7906 11 months ago
parent
commit
cf6f5207a4
  1. 2
      src/main/java/de/hsfulda/onses/services/GameService.java

2
src/main/java/de/hsfulda/onses/services/GameService.java

@ -31,6 +31,8 @@ public class GameService {
// rules:
if (card.getColor() == lastCard.getColor()) legalMoveFound = true; // same color
if (card.getValue() == lastCard.getValue()) legalMoveFound = true; // same value
return legalMoveFound;
}

Loading…
Cancel
Save