Contracts for this project target Ethereum Sepolia (testnet) and Ethereum mainnet.
Players join a Hjivemind™ lobby and compete across 4 rounds of multiple-choice questions. Each round is randomly assigned as either majority or minority mode via Chainlink VRF:
- Majority rounds — predict what most players will choose (classic mechanic)
- Minority rounds — predict the least popular answer; coordination backfires since colluding groups become the majority and lose
This mixed mode is what makes Hjivemind™ tick — there's no fixed strategy that always works.
- Submission — 100 points
- Fast Reveal Bonus — up to 1,000 points
- Match the Winning Choice — 3,000 points
Built with Solidity on Foundry, integrating Chainlink VRF for randomization and both Chainlink Automation and AutoLoop for decentralized game-state progression.
| Contract | Role |
|---|---|
| HjivemindKeeper | Automation controller — checks and advances game state |
| Lobby | Player entry, matchmaking, and game start |
| GameRound | Question delivery, answer submission/reveal, majority/minority scoring |
| ScoreKeeper | Tracks scores and prize pools across rounds |
| Winners | Final results and payout logic |
| Questions | On-chain question storage with VRF-seeded selection |
forge build
forge test
cd app
yarn
yarn dev



