Sol Horse is an innovative blockchain-based horse racing game built on the Solana network. This decentralized application combines the excitement of horse racing with cutting-edge AI technology and NFT ownership, creating an immersive gaming experience where players can own, breed, train, and race virtual horses.
- Unique Genetics: Each horse has distinct attributes including speed, stamina, agility, temperament, and intelligence
- Bloodlines: Multiple bloodlines including Arabian, Thoroughbred, Quarter Horse, Mustang, and Legendary
- Rarity System: Common, Uncommon, Rare, Epic, and Legendary horses with varying capabilities
- Visual Customization: Different coat colors, markings, and visual traits
- Real-time Racing: Experience thrilling races with dynamic outcomes based on horse genetics and AI
- Betting Mechanics: Place bets on races and earn rewards
- Tournament System: Participate in competitive tournaments with prize pools
- Race Analytics: Detailed performance tracking and statistics
- Genetic Breeding: Combine horses to create offspring with inherited traits
- Training Centers: Improve your horses' abilities through specialized training programs
- Bloodline Management: Strategic breeding to develop superior racing lineages
- Daily Quests: Complete challenges to earn rewards and experience
- Player Profiles: Track your achievements, statistics, and horse collection
- Wallet Integration: Seamless Solana wallet connectivity for NFT management
- Analytics Dashboard: Comprehensive insights into your racing performance
- Frontend: React 18 with TypeScript
- Styling: Tailwind CSS for responsive design
- Animation: Framer Motion for smooth UI transitions
- Blockchain: Solana Web3.js for blockchain integration
- Wallet: Solana Wallet Adapter for multi-wallet support
- State Management: Zustand for efficient state handling
- Build Tool: Vite for fast development and building
- Icons: Lucide React for consistent iconography
Before running the project, ensure you have the following installed:
- Node.js (v16 or higher)
- npm or yarn package manager
- A Solana wallet (Phantom, Solflare, etc.)
-
Clone the repository
git clone https://github.com/ereezyy/Sol_Horse.git cd Sol_Horse -
Install dependencies
npm install
-
Start the development server
npm run dev
-
Open your browser Navigate to
http://localhost:5173to view the application
npm run dev- Start the development servernpm run build- Build the project for productionnpm run preview- Preview the production build locallynpm run lint- Run ESLint for code quality checks
Sol_Horse/
โโโ src/
โ โโโ components/ # React components
โ โ โโโ AnalyticsDashboard.tsx
โ โ โโโ BettingPanel.tsx
โ โ โโโ BreedingCenter.tsx
โ โ โโโ DailyQuests.tsx
โ โ โโโ HorseCard.tsx
โ โ โโโ Navigation.tsx
โ โ โโโ PlayerProfile.tsx
โ โ โโโ RaceTrack.tsx
โ โ โโโ TournamentCenter.tsx
โ โ โโโ TrainingCenter.tsx
โ โ โโโ WalletConnection.tsx
โ โโโ services/ # API and blockchain services
โ โโโ store/ # State management
โ โโโ types/ # TypeScript type definitions
โ โโโ App.tsx # Main application component
โ โโโ main.tsx # Application entry point
โ โโโ index.css # Global styles
โ โโโ vite-env.d.ts # Vite environment types
โโโ docs/ # Documentation
โโโ public/ # Static assets
โโโ .bolt/ # Bolt configuration
โโโ package.json # Project dependencies and scripts
โโโ vite.config.ts # Vite configuration
โโโ tailwind.config.js # Tailwind CSS configuration
โโโ tsconfig.json # TypeScript configuration
โโโ README.md # This file
Each horse NFT contains the following genetic attributes that determine racing performance:
| Attribute | Description | Impact |
|---|---|---|
| Speed | Base running velocity | Primary factor in race times |
| Stamina | Endurance over distance | Affects performance in longer races |
| Agility | Cornering and maneuvering ability | Important for complex track layouts |
| Temperament | Consistency and reliability | Reduces performance variance |
| Intelligence | Learning and adaptation | Improves with training and experience |
The breeding system allows players to combine two horses to create offspring with inherited traits:
- Genetic Inheritance: Offspring inherit attributes from both parents with some randomization
- Bloodline Preservation: Certain bloodlines have higher chances of producing superior horses
- Rarity Enhancement: Breeding rare horses increases chances of legendary offspring
- Cooldown Periods: Horses require rest between breeding sessions
Races are determined by a combination of factors:
- Horse Genetics: Base attributes provide the foundation for performance
- Track Conditions: Different tracks favor different horse types
- Weather Effects: Environmental conditions impact race outcomes
- Jockey Skills: AI-driven jockey performance adds strategic depth
- Training History: Well-trained horses perform better over time
The application supports multiple Solana wallets through the Wallet Adapter:
- Phantom
- Solflare
- Slope
- Sollet
- And many more...
- Minting: Create new horse NFTs through breeding or purchasing
- Trading: Buy and sell horses on integrated marketplaces
- Metadata: Rich metadata stored on-chain for each horse
- Ownership: Transparent ownership verification through blockchain
- SOL Integration: Primary currency for transactions and betting
- Reward Distribution: Winners receive SOL rewards from race pools
- Breeding Costs: Breeding requires SOL payment for genetic combination
- Training Fees: Improving horses requires investment in training programs
The application features a modern, responsive design with:
- Dark Theme: Sleek dark interface optimized for gaming
- Smooth Animations: Framer Motion provides fluid transitions
- Mobile Responsive: Fully functional on desktop and mobile devices
- Intuitive Navigation: Easy-to-use interface for all game features
- Real-time Updates: Live data updates for races and statistics
The project maintains high code quality through:
- TypeScript: Strong typing for better development experience
- ESLint: Automated code linting and formatting
- Component Architecture: Modular, reusable React components
- State Management: Centralized state with Zustand
- Error Handling: Comprehensive error handling and user feedback
- Vite Build System: Fast development and optimized production builds
- Code Splitting: Lazy loading for improved performance
- Asset Optimization: Optimized images and resources
- Caching Strategies: Efficient data caching for better UX
We welcome contributions to Sol Horse! Please follow these guidelines:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow TypeScript best practices
- Maintain consistent code formatting with ESLint
- Write meaningful commit messages
- Test your changes thoroughly
- Update documentation as needed
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions:
- Check the documentation for detailed guides
- Search existing issues
- Create a new issue with detailed information
- Join our community discussions
- Basic horse NFT system
- Racing mechanics
- Wallet integration
- User interface
- Advanced breeding system
- Tournament competitions
- Daily quests and rewards
- Analytics dashboard
- Multiplayer tournaments
- Guild system
- Marketplace integration
- Social features
- Machine learning race predictions
- Dynamic difficulty adjustment
- Personalized training recommendations
- Advanced genetic algorithms
Track your progress with various achievements:
- First Race: Complete your first race
- Breeding Master: Successfully breed 10 horses
- Tournament Champion: Win a tournament
- Collector: Own horses from all bloodlines
- Trainer: Max out a horse's training
- Lucky Bettor: Win 100 bets
Built with โค๏ธ on Solana
Experience the future of horse racing gaming with Sol Horse - where blockchain meets the track!

