sweet-bonanza-slot
v1.0.0
Published
Sweet Bonanza inspired slot machine using Stake Engine SDKs
Downloads
9
Readme
Sweet Bonanza 1000 Slot Machine
A slot machine inspired by Pragmatic Play's Sweet Bonanza 1000, built using Stake Engine SDK patterns.
Features
- 6x4 Grid Layout: Classic Sweet Bonanza grid structure
- Cluster Pays: Win with 8+ matching symbols anywhere on the grid
- Tumble Mechanic: Winning symbols disappear and new ones drop down
- Sweet Theme: Candy and fruit symbols with colorful design
- Responsive Design: Works on desktop and mobile devices
Game Mechanics
Symbols
- 🍭 Lollipop (Highest paying)
- 🍬 Candy
- 🧁 Cupcake
- 🍰 Cake
- 🍪 Cookie
- 🎂 Birthday Cake
- 🍓 Strawberry
- 🍇 Grapes
- 🍊 Orange
- 🍌 Banana (Lowest paying)
Paytable
Wins are calculated for 8+ matching symbols in clusters:
- 8 symbols: 2x - 12x bet
- 15 symbols: 50x - 1000x bet
RTP & Volatility
- RTP: 96.5%
- Volatility: High
- Max Win: Up to 1000x bet per cluster
Installation
Clone or download the project
Install dependencies:
npm installStart development server:
npm run devBuild for production:
npm run build
Architecture
Math Engine (math.js)
- Implements Stake Engine math SDK patterns
- Handles symbol generation with weighted probabilities
- Calculates cluster pays and tumble mechanics
- Manages RTP and volatility
Game Engine (main.js)
- Integrates math engine with UI
- Handles user interactions and animations
- Manages game state and balance
Styling (style.css)
- Sweet Bonanza inspired design
- Responsive layout with CSS Grid
- Smooth animations and transitions
Stake Engine Integration
This implementation follows Stake Engine SDK guidelines:
Web SDK Patterns
- Modular component architecture
- Event-driven game flow
- Responsive design principles
- Accessibility considerations
Math SDK Patterns
- Deterministic RNG implementation
- Configurable RTP and volatility
- Comprehensive win calculation
- Audit-friendly math logic
Development
The game is built with vanilla JavaScript and modern web standards:
- ES6 modules
- CSS Grid and Flexbox
- Async/await for animations
- Event-driven architecture
License
This project is for educational purposes and demonstrates Stake Engine SDK integration patterns.
