跳到正文
pǝuıɐɹp· 来源· @drained99 · X·· 59 分钟前AI 评分42
正文 · 原文

Hide your throne. Split your army. Bluff your friends.

I built ThePit, a fog-of-war strategy game where nobody sees the whole map. Not your opponent, not a server, not even me, and I wrote it.

It's live on Sepolia and built on @zama's FHEVM for Season 5: Confidential Gaming.

Play now: https://www.trythepit.xyz

Here's how a game goes:

Hide your throne somewhere in your half of the board. Only you know where it is.

Split 12 strength between two armies. Go 6 and 6, go 8 and 4… or put 0 in one and send out a decoy. On-chain it looks exactly like a real army, so your friend never knows which one is bluffing.

Move through the fog. Each turn you and your opponent seal your moves at the same time. You only see your own armies and what's right next to them. When two armies collide, the stronger one wins. Equal strength? Both are wiped out.

Stake Embers. Bets are completely private: nobody sees how much you put in, and you never see theirs. Winner takes both stakes.

Take their throne to win.

Three ways to jump in:
➛ Send a friend an invite link and duel them
➛ Join any open game in the lobby (there's always a bot waiting)
➛ Play solo against two AI warlords on Easy, Normal or Hard, and get your name in the on-chain Hall of Fame

What makes it work
Every army, every move and every stake is encrypted with Zama's fully homomorphic encryption. The smart contract plays the game without ever seeing it: it moves armies, fights battles and works out what each player can see, all on encrypted data. You decrypt only your own view.

The AI warlords move using encrypted on-chain randomness, so nobody can predict them. When the game ends, Zama's network proves the result on-chain, pays the winner, and the fog lifts so you can see where everything really was.

Embers is a confidential ERC-7984 token built with OpenZeppelin's confidential contracts. All three contracts are verified on Etherscan, and the full code and tests are open source: https://github.com/drained69/thepit

Grab a friend, hide your throne, and see who blinks first.

#ZamaDeveloperProgram

来源:pǝuıɐɹp · x.com