change number range for first box
This commit is contained in:
parent
b41ea1da07
commit
b797765d02
@ -34,6 +34,14 @@ export function SlotMachine({ winner, isSpinning, onAnimationComplete, onDraw, p
|
||||
// Generate randomized sequences for each reel (memoized so they stay consistent)
|
||||
// Always start with 0 at position 0, then shuffle the rest
|
||||
const randomSequences = useMemo(() => {
|
||||
// First reel (hundreds): only 0 and 1
|
||||
const createSequenceFirstReel = () => {
|
||||
const remaining = [1];
|
||||
const shuffled = shuffleArray(remaining);
|
||||
return [0, ...shuffled]; // Always put 0 first, then 1
|
||||
};
|
||||
|
||||
// Second and third reels: 0-9
|
||||
const createSequence = () => {
|
||||
const remaining = [1, 2, 3, 4, 5, 6, 7, 8, 9];
|
||||
const shuffled = shuffleArray(remaining);
|
||||
@ -41,9 +49,9 @@ export function SlotMachine({ winner, isSpinning, onAnimationComplete, onDraw, p
|
||||
};
|
||||
|
||||
return [
|
||||
createSequence(), // Reel 1
|
||||
createSequence(), // Reel 2
|
||||
createSequence(), // Reel 3
|
||||
createSequenceFirstReel(), // Reel 1: [0, 1]
|
||||
createSequence(), // Reel 2: [0, 1-9 shuffled]
|
||||
createSequence(), // Reel 3: [0, 1-9 shuffled]
|
||||
];
|
||||
}, []);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user