A comprehensive cryptocurrency trading simulation game built with React. Start with $10,000 and build your crypto empire through strategic trading, market analysis, and portfolio management.
- Live portfolio overview with profit/loss tracking
- Real-time cryptocurrency price movements
- Interactive price charts and market trends
- Comprehensive transaction history
- Bitcoin (BTC) - The king of crypto, most stable
- Ethereum (ETH) - Smart contract platform, moderate volatility
- Dogecoin (DOGE) - Meme coin with high volatility
- Cardano (ADA) - Proof-of-stake blockchain
- Solana (SOL) - High-performance blockchain
- Shiba Inu (SHIB) - Extreme volatility meme token
- Polygon (MATIC) - Ethereum scaling solution
- Chainlink (LINK) - Decentralized oracle network
- Buy/Sell with real-time price execution
- 0.1% transaction fees for realistic trading
- Portfolio diversification tracking
- Market depth and liquidity simulation
- Price volatility based on real crypto characteristics
- Real-time news feed affecting crypto prices
- Market events like ETF approvals, exchange hacks, celebrity tweets
- Regulatory news and partnership announcements
- Market sentiment indicators
- First Trade - Make your first transaction
- Profit Maker - Reach $1,000 profit
- Growing Portfolio - Build $25,000 total value
- Diamond Hands - Hold positions during volatility
- Day Trader - Complete 10 trades in one session
- Crypto Whale - Achieve $100,000 portfolio value
- Automatic save/load functionality
- Local storage for game state
- Resume your trading session anytime
- Node.js 16+
- npm or yarn
-
Clone the repository
git clone <repository-url> cd codespaces-react
-
Install dependencies
npm install
-
Start the development server
npm start
-
Open your browser Navigate to
http://localhost:3000
(or the port shown in terminal)
- Welcome Screen: Read the game introduction and features
- Start Game: Click "Start Your Crypto Journey" to begin
- Initial Capital: You start with $10,000 in cash
- Navigate to Market: Use the sidebar to access the trading interface
- Select Cryptocurrency: Click on any crypto card to select it
- Choose Trade Type: Select Buy or Sell
- Enter Amount: Specify how much crypto to trade
- Execute Trade: Confirm your transaction
- Diversify: Don't put all money in one cryptocurrency
- Watch News: Market events affect prices significantly
- Buy Low, Sell High: Look for price dips and peaks
- Manage Risk: Keep some cash for opportunities
- Track Performance: Monitor your portfolio regularly
- ๐ Dashboard: Portfolio overview and recent activity
- ๐น Market: Trading interface and crypto prices
- ๐ฐ News: Market events and trading insights
- ๐ Achievements: Progress tracking and milestones
- React 18 with functional components and hooks
- Context API for global state management
- CSS Grid & Flexbox for responsive layouts
- Local Storage for game persistence
- Price Simulation: Realistic volatility based on crypto characteristics
- Market Events: Random news events affecting prices
- Achievement System: Progress tracking with unlockable rewards
- Transaction Fees: 0.1% fee on all trades for realism
- Mobile-first approach
- Tablet and desktop optimized
- Touch-friendly interface
- Adaptive navigation
- Portfolio overview with real-time values
- Current holdings with profit/loss
- Market overview and recent transactions
- Interactive crypto selection
- Real-time price charts
- Buy/sell controls with amount helpers
- Trade summary with fees
- Market news feed
- Trading tips and insights
- Risk management guidance
- Progress tracking
- Unlockable milestones
- Player statistics
- Achievement tips
- Dark Theme: Crypto-inspired dark interface
- Gradient Accents: Modern gradient backgrounds
- Color Coding: Green for gains, red for losses
- Smooth Animations: Engaging transitions and effects
- Intuitive Navigation: Clear sidebar navigation
- Real-time Updates: Live price and portfolio updates
- Responsive Feedback: Hover effects and animations
- Accessibility: Keyboard navigation and screen reader support
npm start
- Start development servernpm build
- Build for productionnpm test
- Run test suitenpm preview
- Preview production build
src/
โโโ components/ # React components
โ โโโ Dashboard.jsx # Portfolio overview
โ โโโ Market.jsx # Trading interface
โ โโโ News.jsx # Market news
โ โโโ Achievements.jsx # Achievement system
โ โโโ Navigation.jsx # Sidebar navigation
โ โโโ WelcomeScreen.jsx # Game introduction
โโโ context/
โ โโโ GameContext.jsx # Global state management
โโโ utils/ # Utility functions
โโโ App.jsx # Main application component
- Initial Cash: $10,000
- Transaction Fee: 0.1%
- Price Update Interval: 3 seconds
- News Event Frequency: ~10% chance every 10 seconds
- Bitcoin: 2% volatility (most stable)
- Ethereum: 3% volatility
- Cardano: 4% volatility
- Chainlink: 4% volatility
- Polygon: 5% volatility
- Solana: 6% volatility
- Dogecoin: 8% volatility
- Shiba Inu: 12% volatility (most volatile)
- First Trade: Complete your first buy or sell transaction
- Profit Maker: Achieve $1,000 total profit
- Growing Portfolio: Reach $25,000 total portfolio value
- Day Trader: Complete 10 trades in one session
- Diamond Hands: Hold positions during market volatility
- Crypto Whale: Build a $100,000+ portfolio
- Options Trading: Crypto derivatives and futures
- Staking Rewards: Earn passive income on holdings
- DeFi Integration: Liquidity pools and yield farming
- Social Features: Leaderboards and friend challenges
- Advanced Charts: Technical analysis tools
- Market Maker: Create your own cryptocurrency
- Real API Integration: Live crypto price feeds
- Advanced Analytics: Portfolio performance metrics
- Mobile App: React Native version
- Multiplayer Mode: Compete with other players
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This is a simulation game for entertainment purposes only.
- Not financial advice
- Real cryptocurrency trading involves significant risk
- Past performance does not guarantee future results
- Always do your own research before investing
Built with โค๏ธ for crypto enthusiasts and gaming fans
Start your crypto journey today and become the ultimate Crypto Tycoon! ๐