支持的游戏
所有游戏使用 Chainlink VRF 进行可验证随机。每个游戏都有清晰的规则和确定性的结果映射。
抛硬币
已上线经典的 50/50 抛硬币。选择正面或反面,与另一位玩家对赌。
赔率
50/50
支付
2x
最小投注
1 -
最大投注
1,000,000 -
规则
- 两位玩家投注相等金额
- 一人选择正面,一人选择反面
- Chainlink VRF 决定获胜者
- 获胜者赢得全部奖池
Game Modes
P2Pvs House1v1 Challenge
How Winner is Determined (Chainlink VRF)
randomWords[0] % 2 → 0 = Player A, 1 = Player BFor Nerds: Technical Details(click to expand)
Contract:
PeerBet.solFunction:
fulfillRandomWords()Winner Logic:
winner = (randomWords[0] % 2) == 0 ? playerA : playerB
✓ Verified on Etherscan • ✓ Open Source • ✓ Chainlink VRF v2.5
掷骰子
已上线掷虚拟骰子(1-6)。点数大者获胜。
赔率
1/N (3-100 players)
支付
Nx (up to 100x)
最小投注
1 -
最大投注
1,000,000 -
规则
- 双方玩家同时掷骰子
- VRF 生成两个独立的掷骰结果
- 点数大者获胜
- 平局重掷
Game Modes
Public Rooms (3-100 players)Private Challenge Rooms
How Winner is Determined (Chainlink VRF)
(randomWords[0] % currentPlayers) + 1 = Winner NumberFor Nerds: Technical Details(click to expand)
Contract:
PeerBet.solFunction:
_finalizeDiceGame()Winner Logic:
winningNumber = (randomWord % currentPlayers) + 1
✓ Verified on Etherscan • ✓ Open Source • ✓ Chainlink VRF v2.5
石头剪刀布
即将推出P2P 提交-揭示石头剪刀布。双方玩家提交选择,然后揭示。
赔率
33.3% each
支付
2x
最小投注
1 -
最大投注
1,000,000 -
规则
- 双方玩家提交哈希后的选择
- 双方提交后,揭示选择
- 适用标准石头剪刀布规则
- 平局重赛
Game Modes
P2P
How Winner is Determined (Chainlink VRF)
0 = Rock, 1 = Paper, 2 = ScissorsFor Nerds: Technical Details(click to expand)
Contract:
Coming SoonFunction:
TBDWinner Logic:
randomWords[0] % 3 determines computer choice
✓ Verified on Etherscan • ✓ Open Source • ✓ Chainlink VRF v2.5
自定义游戏
PeetBet 的架构支持自定义游戏合约。开发者可以通过实现 IPeetBetGame 接口创建新游戏。
必需接口
interface IPeetBetGame {
function createGame(uint256 amount) external returns (uint256 gameId);
function joinGame(uint256 gameId) external;
function resolveGame(uint256 gameId, uint256 randomValue) external;
event GameCreated(uint256 indexed gameId, address creator, uint256 amount);
event GameJoined(uint256 indexed gameId, address player);
event GameResolved(uint256 indexed gameId, address winner, uint256 outcome);
}