Projects
Back Projects

GameStocks: Intelligent Stock Trading Simulation

GameStocks: Intelligent Stock Trading Simulation
  • Client Volodymyr C.
  • Category Game
  • Date January 22, 2025

GameStocks is an innovative Progressive Web Application that transforms traditional stock trading board games into an intelligent, realistic experience. By replacing simple dice-based mechanics with sophisticated mathematical algorithms, it brings the unpredictability and complexity of real financial markets to your gaming table.

The Problem It Solves

Traditional stock-related board games rely on primitive price generation methods like dice rolls or simple card draws. This makes gameplay predictable and unrealistic, failing to capture the true dynamics of financial markets. GameStocks addresses this by implementing a triangular probability distribution algorithm that mimics real market behavior, complete with over 200 unique news events that explain price changes.

Key Features

Realistic Market Simulation: The app uses advanced mathematical models to generate stock prices that behave like real markets, with more frequent small changes and occasional dramatic shifts.

Dynamic News System: Every price change comes with a contextual explanation from a library of 200+ unique news events, making the experience engaging and educational.

Progressive Web App: Install it on any device and play offline. The app works seamlessly across smartphones, tablets, and computers without needing an internet connection.

Customizable Experience: Adjust the number of stocks (minimum 2), set initial price ranges, configure trading limits, and even rename companies to create your perfect gaming session.

Smart User Experience: Features like screen wake-lock during gameplay, sound effects, vibration feedback, and smooth animations create an immersive experience.

Technical Innovation

GameStocks showcases modern web development practices by building a full-featured application as a client-side PWA. The entire game logic runs in your browser, eliminating the need for servers and ensuring instant response times.

The core innovation lies in the price generation algorithm, which uses triangular probability distribution to create realistic market movements. This mathematical approach ensures that small price changes are common while dramatic shifts remain rare but possible – just like real stock markets.

Built with SvelteKit 5 and TypeScript, the application demonstrates how modern web technologies can create sophisticated gaming experiences that rival native applications.

User Experience

The interface is designed to be intuitive for both board game enthusiasts and newcomers to stock trading games. Clean, responsive design ensures the app works perfectly on any device, from smartphones during family game night to tablets for educational sessions.

The app includes thoughtful touches like automatic installation prompts, offline functionality, and special support for iOS Safari users. Visual indicators clearly show price movements, while optional sound effects and haptic feedback enhance the gaming experience.

Development Approach

This project represents a complete reimagining of how board games can integrate with digital technology. Instead of simply digitizing existing mechanics, GameStocks creates an entirely new category of hybrid physical-digital gaming.

The development focused on mathematical precision, using proven statistical methods to ensure fair and engaging gameplay. Every technical decision was made with user experience in mind, from the choice of frameworks to the implementation of PWA features.