Type Arena

Real-time competitive typing battles with on-chain verification on Linera

Repo

About

## Wave 4 submission

> We focused entirely on "Production Readiness and Testnet Deployment." We migrated the application from a local-only development environment to the public Linera Testnet Conway. We also containerized the entire application using Docker to ensure zero-setup grading for judges and fixed critical browser security headers (COOP/COEP) required for Linera's WebAssembly client to function correctly in modern browsers.

## Wave 5 submission

We have successfully delivered a fully decentralized Type Racing game that leverages Linera's unique architecture to solve improved scalability and responsiveness.

  • Implemented Microchain Architecture (User-Centric Model) Moved beyond a single-chain prototype to a true multi-chain application.

User Chains vs. Host Chain: Designed a split-architecture where independent User Chains interact with a central Host Chain. Cross-Chain Messaging: Implemented execute_message handlers in the Rust smart contract ( contract.rs ). Actions like JoinRoom and SubmitResult are now asynchronous cross-chain messages sent from the player's chain to the host, demonstrating Linera's ability to handle parallel execution state. Cross-Chain Messaging: Implemented execute_message handlers in the Rust smart contract ( contract.rs ). Actions like JoinRoom and SubmitResult are now asynchronous cross-chain messages sent from the player's chain to the host, demonstrating Linera's ability to handle parallel execution state.

## Wave 6 submission

Updates in this Wave: Type Arena - Linera We are proud to present Type Arena, a fully functional, real-time multiplayer typing racer built on the Linera Layer-1 microchain protocol. This submission demonstrates the power of microchains with sub-second finality and cross-chain messaging.

🔗 Deliverable URLs

Testnet Deployment: Linera Conway Testnet Application ID: c103c66fa5e765940f564b13b8419c399d9657f9f0b14d07c83d147a7078436c Source Code: Included in submission Demo Video: https://youtu.be/OJhK5VHm-b4 Github : https://github.com/SuryaXyz-art/Type-Arena-Linera Vercel Demo: https://type-arena-linera-teal.vercel.app/

✅ Deployment & Accessibility

Testnet Conway Live: The contracts are successfully deployed to the Linera Conway Testnet (App ID: c103c66fa5e765940f564b13b8419c399d9657f9f0b14d07c83d147a7078436c). Docker Support: "Deploy what you demo" philosophy. Only one command needed: docker compose up --build. This spins up the local Linera network, deploys contracts, and starts the frontend. Vercel Ready: Frontend is configured for Vercel deployment to interact with the Testnet backend.

🔗 Linera Integration (SDK 0.15.7)

Microchain Architecture: The app uses a true microchain architecture. Player Chains: Each player operates on their own microchain. Room Chains: Game rooms are distinct entites managed via cross-chain messages. Cross-Chain Messaging: We implemented send_message() and execute_message() to handle: PlayerJoined: specific logic to sync player state to the room. ResultSubmitted: Real-time score updates sent from player chain to room chain. SyncState: Broadcasting game state from host to all players. Real-Time Features: Leverages Linera's sub-second finality to provide instant WPM updates and race progress without centralized websockets.

🎮 Functionality

Multiplayer Engine: Create/Join Rooms with unique IDs. "Lobby" state for gathering players. Synchronized "Game Start" countdown. Gameplay: Real-time WPM and Accuracy calculation. Live progress bars showing opponent status. Leaderboards persisted on-chain. Scoring Algorithm: Score = WPM × (Accuracy/100)² ensures fair competition.

🎨 User Experience (UX)

Professional UI: Built with React 18, TailwindCSS, and Framer Motion. Visuals: Glassmorphism effects and modern gradients. Smooth animations for typing progress and page transitions. Responsive design for various screen sizes. Onboarding: Simple wallet connection flow using @linera/client.

📄 Documentation

Comprehensive README: detailed setup instructions, architecture diagrams (Mermaid.js), and explanation of the microchain data flow. Code Quality: Rust contracts structured into contract.rs (logic) and service.rs (queries). GraphQL schema defined for easy frontend integration. No mock data; all game actions result in real blockchain transactions.

From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.