An interactive application that simulates Hegelian dialectics between free and proprietary software using game theory and Ethereum smart contracts.
- 🎯 Game Theory Simulation - Prisoner's dilemma applied to software development
- 🤖 Intelligent AI Agents - 5 different strategies (Tit-for-Tat, Always Cooperate, etc.)
- ⛓️ Blockchain Integration - Smart contracts on Sepolia Testnet
- 💰 Staking System - Bet real ETH on your decisions
- 📊 Real-time Analytics - Payoff charts and statistics
- 🌐 Multi-language - Spanish, English, and Latin
- 🎨 Light/Dark Theme - Modern interface with Tailwind CSS
- 📱 Responsive Design - Works on desktop and mobile
- Frontend: Next.js 14, React 19, TypeScript
- Styling: Tailwind CSS, shadcn/ui
- Blockchain: Ethers.js, MetaMask
- Charts: Recharts
- Icons: Lucide React
- Node.js 18+
- npm or yarn
- MetaMask (optional, works in simulation mode)
# Clone the repository
git clone https://github.com/YOUR_USERNAME/game-theory-app.git
cd game-theory-app
# Install dependencies
npm install
# Run in development
npm run dev
- Install MetaMask
- Connect to Sepolia Testnet
- Get test ETH: Sepolia Faucet
- Play with real test money!
- Open the application
- Go to the "Game" tab
- Join the game with a stake
- Choose your strategy: Free Software (cooperate) or Proprietary Software (defect)
- Observe results and payoffs
- Connect your MetaMask wallet
- Make sure you're on Sepolia Testnet
- Join the game with real test ETH
- Your actions are recorded on blockchain
- Withdraw your earnings when finished
Strategy | Description | Cooperation Rate |
---|---|---|
Tit-for-Tat | Cooperates initially, then mimics opponent | 70% |
Always Cooperate | Always chooses free software | 100% |
Always Defect | Always chooses proprietary software | 0% |
Majority Rule | Follows the majority strategy | 50% |
Random | Randomly chooses between options | 50% |
Others: Free | Others: Proprietary | |
---|---|---|
You: Free | 4 ETH (Mutual cooperation) | 0 ETH (You're exploited) |
You: Proprietary | 5 ETH (You exploit others) | 1 ETH (Mutual defection) |
game-theory-app/
├── app/ # Next.js App Router
│ ├── layout.tsx # Main layout
│ ├── page.tsx # Main page
│ └── globals.css # Global styles
├── components/ # React components
│ ├── ui/ # shadcn/ui components
│ ├── game-dashboard.tsx # Game dashboard
│ ├── payoff-chart.tsx # Payoff charts
│ └── ai-agents.tsx # AI agents management
├── hooks/ # Custom hooks
│ ├── use-web3-game-state.ts # Web3 game state
│ ├── use-theme.ts # Light/dark theme
│ └── use-language.ts # Multi-language
├── lib/ # Utilities
│ └── contract.ts # Smart contract interaction
└── types/ # TypeScript definitions
└── game.ts # Game types
- Network: Sepolia Testnet
- Address:
0x6F6f3C1d3c2A57bDD65403d4935e7A58b52C5035
- Explorer: View on Etherscan
- 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
- Integration with more networks (Polygon, Arbitrum)
- Tournaments and rankings
- NFTs for winning strategies
- DAO integration for governance
- Real-time multiplayer mode
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by Richard Stallman's philosophy on free software
- Game theory applied by John Nash
- Hegelian dialectics in technology
- Ethereum developer community
- Author: Your Name
- Email: [email protected]
- Twitter: @your_username
- LinkedIn: Your Profile
⭐ Give it a star if you liked the project! ⭐
🔗 Try it live here! (Replace with your actual deployment URL)