The High-Low Game is a decentralized game built on the blockchain, allowing players to predict whether the next number will be higher or lower than the previous one. This game integrates with smart contracts, ensuring a fair, transparent, and trustless gaming experience. Players can place bets and potentially win tokens by correctly predicting the outcomes.
- Play the High-Low game by predicting if the next number will be higher or lower.
- Use MEME tokens (or your token of choice) to place bets.
- Secure, trustless transactions powered by Ethereum smart contracts.
- Transparent and immutable transaction history on the blockchain.
- Integration with MetaMask for wallet connection and token management.
- Real-time updates for player balances, bet amounts, and attempts.
- Contract Address Token:
0x922348142A93D5820D6aeBDE7fd2D8e6d19a2c2A - Contract Address HighLow:
0x5B278EF9B4131299403c0F8b477225615c2F8E4A - Network: Edu Chain
-
Contract Address Token: View on Explorer
-
Contract Address HighLow: View on Explorer
-
Coin Used: MEME (or FINALCOIN) - FC
- Connect Wallet: Players connect their wallet via MetaMask.
- Claim Tokens: Players can claim MEME tokens to start playing.
- Place Bet: Players enter their bet amount and select "Higher" or "Lower."
- Play the Game: The game will evaluate the prediction, update the number, and check if the bet is correct.
- View Balance: Players can view their current MEME coin balance and the number of attempts made.
The frontend is designed to interact with the High-Low Game smart contract. It is built with HTML, CSS, and JavaScript, and connects to the Ethereum blockchain using the Web3.js library.
- Frontend: HTML, CSS, JavaScript
- Blockchain: Ethereum Smart Contracts (Solidity)
- Library: Web3.js for blockchain interaction
- Wallet Integration: MetaMask
- Clone the repository and install dependencies.
- Deploy the smart contract to a test network.
- Configure the frontend to interact with the deployed contract.
- Connect MetaMask to fund the contract and start placing bets.
- Add more game variants with different types of predictions.
- Implement multi-player functionality to allow for competitive play.
- Real-time transaction history display for each user.
- Implement a leaderboards system to reward top players.
- Integration with IPFS to store game data and user statistics.
This project is open source under the MIT License.