pokie
Version:
A server-side video slot game logic framework for JavaScript and TypeScript.
8 lines (6 loc) • 313 B
text/typescript
import {GameSessionHandling, NextSessionRoundPlayableDetermining} from "pokie";
export class PlayUntilAnyLosingCombinationStrategy implements NextSessionRoundPlayableDetermining {
public canPlayNextSimulationRound(session: GameSessionHandling): boolean {
return session.getWinAmount() !== 0;
}
}