Compare commits
No commits in common. "v1.39.1" and "v1.39.0" have entirely different histories.
2 changed files with 18 additions and 13 deletions
|
@ -16,6 +16,13 @@ import static de.szut.casino.slots.Symbol.*;
|
|||
public class SlotService {
|
||||
private final int REEL_LENGTH = 32;
|
||||
|
||||
// 98% RTP
|
||||
private final int SEVEN_COUNT = 1;
|
||||
private final int BAR_COUNT = 4;
|
||||
private final int BELL_COUNT = 7;
|
||||
private final int CHERRY_COUNT = 10;
|
||||
private final int BLANK_COUNT = 10;
|
||||
|
||||
private final List<Symbol> firstReel;
|
||||
private final List<Symbol> secondReel;
|
||||
private final List<Symbol> thirdReel;
|
||||
|
@ -102,11 +109,11 @@ public class SlotService {
|
|||
|
||||
private List<Symbol> createReelStrip() {
|
||||
List<Symbol> reelStrip = new ArrayList<>(REEL_LENGTH);
|
||||
addSymbolsToStrip(reelStrip, CHERRY, CHERRY.getCountPerStrip());
|
||||
addSymbolsToStrip(reelStrip, BELL, BELL.getCountPerStrip());
|
||||
addSymbolsToStrip(reelStrip, BAR, BAR.getCountPerStrip());
|
||||
addSymbolsToStrip(reelStrip, SEVEN, SEVEN.getCountPerStrip());
|
||||
addSymbolsToStrip(reelStrip, BLANK, BLANK.getCountPerStrip());
|
||||
addSymbolsToStrip(reelStrip, CHERRY, CHERRY_COUNT);
|
||||
addSymbolsToStrip(reelStrip, BELL, BELL_COUNT);
|
||||
addSymbolsToStrip(reelStrip, BAR, BAR_COUNT);
|
||||
addSymbolsToStrip(reelStrip, SEVEN, SEVEN_COUNT);
|
||||
addSymbolsToStrip(reelStrip, BLANK, BLANK_COUNT);
|
||||
return reelStrip;
|
||||
}
|
||||
|
||||
|
|
|
@ -6,19 +6,17 @@ import java.math.BigDecimal;
|
|||
|
||||
@Getter
|
||||
public enum Symbol {
|
||||
SEVEN("seven", new BigDecimal("1000"), 1),
|
||||
BAR("bar", new BigDecimal("85"), 4),
|
||||
BELL("bell", new BigDecimal("40"), 7),
|
||||
CHERRY("cherry", new BigDecimal("10"), 10),
|
||||
BLANK("blank", new BigDecimal("0"), 10);
|
||||
SEVEN("seven", new BigDecimal("1000")),
|
||||
BAR("bar", new BigDecimal("85")),
|
||||
BELL("bell", new BigDecimal("40")),
|
||||
CHERRY("cherry", new BigDecimal("10")),
|
||||
BLANK("blank", new BigDecimal("0"));
|
||||
|
||||
private final String displayName;
|
||||
private final BigDecimal payoutMultiplier;
|
||||
private final int countPerStrip;
|
||||
|
||||
Symbol(String displayName, BigDecimal payoutMultiplier, int count) {
|
||||
Symbol(String displayName, BigDecimal payoutMultiplier) {
|
||||
this.displayName = displayName;
|
||||
this.payoutMultiplier = payoutMultiplier;
|
||||
this.countPerStrip = count;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue