Skip to content

Rahandhazhar/codespaces-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Crypto Tycoon - Build Your Crypto Empire

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.

Crypto Tycoon React Vite

๐ŸŽฎ Game Features

๐Ÿ“Š Real-time Trading Dashboard

  • Live portfolio overview with profit/loss tracking
  • Real-time cryptocurrency price movements
  • Interactive price charts and market trends
  • Comprehensive transaction history

๐Ÿ’ฐ 8 Cryptocurrencies Available

  • 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

๐Ÿ“ˆ Advanced Trading Features

  • 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

๐Ÿ“ฐ Dynamic Market Events

  • Real-time news feed affecting crypto prices
  • Market events like ETF approvals, exchange hacks, celebrity tweets
  • Regulatory news and partnership announcements
  • Market sentiment indicators

๐Ÿ† Achievement System

  • 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

๐Ÿ’พ Game Persistence

  • Automatic save/load functionality
  • Local storage for game state
  • Resume your trading session anytime

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 16+
  • npm or yarn

Installation

  1. Clone the repository

    git clone <repository-url>
    cd codespaces-react
  2. Install dependencies

    npm install
  3. Start the development server

    npm start
  4. Open your browser Navigate to http://localhost:3000 (or the port shown in terminal)

๐ŸŽฏ How to Play

Getting Started

  1. Welcome Screen: Read the game introduction and features
  2. Start Game: Click "Start Your Crypto Journey" to begin
  3. Initial Capital: You start with $10,000 in cash

Trading Basics

  1. Navigate to Market: Use the sidebar to access the trading interface
  2. Select Cryptocurrency: Click on any crypto card to select it
  3. Choose Trade Type: Select Buy or Sell
  4. Enter Amount: Specify how much crypto to trade
  5. Execute Trade: Confirm your transaction

Strategy Tips

  • 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

Navigation

  • ๐Ÿ“Š Dashboard: Portfolio overview and recent activity
  • ๐Ÿ’น Market: Trading interface and crypto prices
  • ๐Ÿ“ฐ News: Market events and trading insights
  • ๐Ÿ† Achievements: Progress tracking and milestones

๐Ÿ› ๏ธ Technical Features

Architecture

  • React 18 with functional components and hooks
  • Context API for global state management
  • CSS Grid & Flexbox for responsive layouts
  • Local Storage for game persistence

Game Mechanics

  • 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

Responsive Design

  • Mobile-first approach
  • Tablet and desktop optimized
  • Touch-friendly interface
  • Adaptive navigation

๐Ÿ“ฑ Screenshots

Dashboard

  • Portfolio overview with real-time values
  • Current holdings with profit/loss
  • Market overview and recent transactions

Trading Interface

  • Interactive crypto selection
  • Real-time price charts
  • Buy/sell controls with amount helpers
  • Trade summary with fees

News & Events

  • Market news feed
  • Trading tips and insights
  • Risk management guidance

Achievements

  • Progress tracking
  • Unlockable milestones
  • Player statistics
  • Achievement tips

๐ŸŽจ Design Features

Visual Design

  • 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

User Experience

  • 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

๐Ÿ”ง Development

Available Scripts

  • npm start - Start development server
  • npm build - Build for production
  • npm test - Run test suite
  • npm preview - Preview production build

Project Structure

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

๐ŸŽฎ Game Balance

Starting Conditions

  • Initial Cash: $10,000
  • Transaction Fee: 0.1%
  • Price Update Interval: 3 seconds
  • News Event Frequency: ~10% chance every 10 seconds

Cryptocurrency Volatility

  • 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)

๐Ÿ† Achievement Guide

Beginner Achievements

  • First Trade: Complete your first buy or sell transaction
  • Profit Maker: Achieve $1,000 total profit

Intermediate Achievements

  • Growing Portfolio: Reach $25,000 total portfolio value
  • Day Trader: Complete 10 trades in one session

Advanced Achievements

  • Diamond Hands: Hold positions during market volatility
  • Crypto Whale: Build a $100,000+ portfolio

๐Ÿ”ฎ Future Enhancements

Planned Features

  • 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

Technical Improvements

  • Real API Integration: Live crypto price feeds
  • Advanced Analytics: Portfolio performance metrics
  • Mobile App: React Native version
  • Multiplayer Mode: Compete with other players

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐ŸŽฏ Disclaimer

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! ๐Ÿš€

Releases

No releases published

Packages

No packages published