About
# PlayFrens — On-Chain Multiplayer Gaming Without Gas Fees
**PlayFrens** is an on-chain multiplayer game platform that solves one of the biggest UX problems in blockchain gaming — **gas fees and latency on every action**.
Built on **Yellow Network state channels (ERC-7824)**, PlayFrens lets friends find each other by ENS name, deposit tokens once, and play unlimited poker hands with **zero gas fees** and **instant settlement**.
---
## Judge Clarification
An earlier experimental project was developed within the GetFrens monorepo (https://github.com/getfrens/monorepo), but it was based on a different and more complex concept — a MetaMask-like wallet extension designed to interact with memecoins directly from Twitter posts. Due to technical complexity, unresolved blockers, and reduced team interest, that effort was discontinued.
PlayFrens is a completely new project built independently from scratch by me (Deven Rathod) as a solo developer for this hackathon submission. All gameplay, state channel integration, and architecture described here were implemented specifically for this project. No production code from the earlier repository is reused in this submission.
## Core Insight
A 4-player poker game with 100 hands should produce **zero on-chain transactions during gameplay**.
Only the **initial deposit** and **final withdrawal** touch the blockchain.
Everything in between — dealing cards, placing bets, showdowns, and pot distribution — happens **off-chain** through cryptographically signed state updates on Yellow Network’s **Clearnode**, giving players:
- The **speed of a centralized server**
- The **security of on-chain funds**
---
## How a Typical Session Works
- Players connect their wallet and authorize with Yellow Network.
- They create or join a poker table.
- The host sets the buy-in, blinds, and chip denominations.
- When the first hand is dealt, all players co-sign a multi-party app session that locks their buy-in from their **Unified Balance on Clearnode**.
- Gameplay happens in real-time via **Socket.io**:
- Check
- Bet
- Fold
- Raise
- The server computes updated chip allocations and submits signed state updates to Clearnode after each hand.
**Result:**
No gas. No block confirmations. Just instant poker.
When the session ends:
- Funds return to each player’s Unified Balance proportional to their chip count.
- Players can withdraw back to their wallet at any time.
---
## Social Layer (ENS Integration)
PlayFrens integrates **ENS** to make multiplayer discovery seamless:
- Search for friends by their `.eth` name
- Display ENS avatars at the poker table
- Invite friends directly to rooms
---
## Game-Agnostic Architecture
While poker is the first game, the platform is designed to support **any turn-based game that tracks chip or score balances**.
The following components are reusable across games:
- Fund flow
- Session management - Settlement layer
---
## Smart Contract Usage
PlayFrens does **not** deploy custom smart contracts.
Instead, it uses Yellow Network’s existing infrastructure:
- **Custody Contract** — fund security
- **Adjudicator Contract** — dispute resolution - **ytest.usd** — game token
All deployments currently run on **Base Sepolia**.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






