fixed bug with seven counter
This commit is contained in:
parent
094c17d16a
commit
e58808bbbc
Binary file not shown.
@ -165,6 +165,8 @@ public class ActionHandler {
|
|||||||
* @return True if the card can be played, false otherwise.
|
* @return True if the card can be played, false otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean canPlay(Card c) {
|
public boolean canPlay(Card c) {
|
||||||
|
if (ctr7 == 0 || c.rank() == Rank.SEVEN) {
|
||||||
|
|
||||||
if (chosenSuit == null) {
|
if (chosenSuit == null) {
|
||||||
if (c.rank() == Rank.JACK) {
|
if (c.rank() == Rank.JACK) {
|
||||||
return true;
|
return true;
|
||||||
@ -174,6 +176,8 @@ public class ActionHandler {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (c.suit() == chosenSuit) {
|
if (c.suit() == chosenSuit) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user