Untitled
unknown
plain_text
10 months ago
614 B
14
Indexable
// 14 means wild symbol
const runTest = async () => {
const game = Game.getInstance();
let currentSpin = null;
for (let i = 1; i <= 200000; i++) {
currentSpin = await game.spin(
{ amount: 1, balance: 10000 } as unknown as ISpinInfo,
ReelsetTypes.BaseSpin,
);
console.log(`Attempt: ${i}`);
if (
(currentSpin.results!.length || 0) === 1 &&
(currentSpin.results as unknown as [{ wins: [{ symbol: number }] }])[0]?.wins?.some(
(win) => win.symbol !== 14,
)
) {
logJson(currentSpin);
break;
}
}
};
(() => {
runTest();
})();
Editor is loading...
Leave a Comment