diff --git a/src/components/SlotMachine.jsx b/src/components/SlotMachine.jsx index 40177ae..c234b30 100644 --- a/src/components/SlotMachine.jsx +++ b/src/components/SlotMachine.jsx @@ -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] ]; }, []);