summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2021-05-26 09:05:09 +0200
committerMike Vink <mike1994vink@gmail.com>2021-05-26 09:05:09 +0200
commit12a87edb323959fe445b61c359f26c92cb505cd7 (patch)
tree9127de3b298011a2dd2b123e73aead30d6208dfe
parent4d0eef82434051f4449b4d567d16d04e464289ba (diff)
tab weggehaald
-rw-r--r--domain/src/main/java/mancala/domain/SmallBowl.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/domain/src/main/java/mancala/domain/SmallBowl.java b/domain/src/main/java/mancala/domain/SmallBowl.java
index 70ef816..a2f5783 100644
--- a/domain/src/main/java/mancala/domain/SmallBowl.java
+++ b/domain/src/main/java/mancala/domain/SmallBowl.java
@@ -102,15 +102,15 @@ public class SmallBowl implements Bowl {
}
private void stealTheBooty(SmallBowl thievingBowl) {
- SmallBowl victim = thievingBowl.getOpposite();
- int booty;
- if (thievingBowl.getMyRocks() == 1 && victim.getMyRocks() != 0) {
- booty = victim.getMyRocks();
- booty++;
- thievingBowl.myRocks = 0;
- victim.myRocks = 0;
- getNextKalaha().claimStolenBooty(booty);
- }
+ SmallBowl victim = thievingBowl.getOpposite();
+ int booty;
+ if (thievingBowl.getMyRocks() == 1 && victim.getMyRocks() != 0) {
+ booty = victim.getMyRocks();
+ booty++;
+ thievingBowl.myRocks = 0;
+ victim.myRocks = 0;
+ getNextKalaha().claimStolenBooty(booty);
+ }
}
private void endTheGame() {