A decentralized guessing game built on the EOS blockchain where players can submit guesses to win half of the contract balance. Built with React, TypeScript, and Wharfkit.
- Connect with Anchor Wallet
- View current contract balance and game statistics
- Submit guesses through EOS transactions
- Real-time updates of game state
- Responsive design with Tailwind CSS
- Track participation history
- Node.js (v18.0.0 or higher)
- npm or yarn
- An EOS wallet (Anchor Wallet recommended)
- Some EOS tokens for playing (Jungle Testnet)
- Clone the repository:
git clone https://github.com/HokenTech/MemoGame.git
cd eos-memo-game
cd frontend- Install dependencies:
npm installTo start the development server:
npm run devThe application will be available at http://localhost:5173
To create a production build:
npm run buildTo preview the production build:
npm run preview├── src/
│ ├── components/ # React components
│ ├── utils/ # Utility functions
│ ├── App.tsx # Main application component
│ ├── constants.ts # Application constants
│ ├── main.tsx # Application entry point
│ └── types.ts # TypeScript type definitions
├── public/ # Static assets
├── index.html # HTML entry point
└── vite.config.ts # Vite configuration
- Frontend Framework: React 18
- Language: TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS
- Blockchain Integration: Wharfkit
- Wallet Support: Anchor Wallet
- Network: EOS Jungle Testnet
The game interacts with an EOS smart contract through the following actions:
- Transfer: Sends EOS tokens with a memo containing the guess
- Current fee per guess: 1.0000 EOS
- Winners receive 50% of the contract balance
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License