MicroChess

Decentralized on-chain chess using Linera microchains for secure, transparent gameplay.

Repo

About

## Wave 1 submission

In the first wave, we built the foundation of MicroChess — a decentralized on-chain chess platform leveraging Linera’s microchains to deliver transparent, verifiable, and trustless gameplay. We developed the core chess engine in Rust, powered by bitboard-based move generation for high-speed and precise calculations, and integrated it with WebAssembly (WASM) for seamless browser execution.

During this phase, we also began exploring testnet Conway integration to enable real on-chain interaction, setting the stage for multi-owner chain gameplay. To support this, we developed the Croissant Wallet to integrate with the testnet, a fork of the official Linera web client designed to simplify connecting user wallets to Linera’s testnet.

Deliverable URL:

- https://github.com/Nirajsah/microchess - https://github.com/Nirajsah/croissant - https://microchess.io

## Wave 2 submission

✅ Wave 2 Updates During Wave 2, we delivered all promised features and improved the overall functionality and user experience of MicroChess.

⚡️ Live Leaderboard with Real-Time Updates: A fully functional live leaderboard was implemented using Supabase Realtime. Player ratings, match results, and new players now update instantly without refreshing. This fulfills our goal of making in-game fields dynamic and interactive.

⌛️ Real-Time Dynamic Game Fields:

We added realtime updates across the platform, including live total game count, automatic profile sync, and instant updates to match metadata. Game progress and player stats now feel immediate and consistent.

🖥️ Improved UI/UX for Chess Gameplay:

We refined layout stability, improved responsiveness, and enhanced the visual clarity of the board and interaction flow to create a smoother experience.

🔥 Major Croissant Wallet Upgrades:

Wallet interactions are significantly more stable on testnet-conway. Improvements include better connection reliability, smoother transaction flow, fewer disconnect issues, and more consistent communication between the frontend and client logic.

♳ Bug Fixes, Stability Improvements & API Enhancements: We stabilized realtime channels, improved data fetching reliability, fixed multiple UI syncing issues, and refined API responses for the Croissant Wallet. These updates make MicroChess far more stable for everyday use.

🚀 How to Test MicroChess

Follow these steps to try MicroChess on testnet-conway. Note: Random matches require two players to be online at the same time, so they may not always pair due to low traffic. Friendly matches always work.

1. Install the Croissant Wallet:

Download the latest v0.2.1-testnet release of the Croissant Wallet (https://github.com/Nirajsah/croissant/releases/tag/v0.2.1-testnet), extract it, and load it as a browser extension.

2. Create a New Wallet:

Open the extension and create a new wallet (takes a few seconds).

3. Connect to MicroChess:

Visit https://microchess.io, click Connect, and approve the request in your wallet.

4. Start Playing:

Click Play Now. Choose Random Match (affects ELO) or Friendly Match (no rating changes).

5. Assigning New Chain:

If new chain info appears, click Assign and approve it in the wallet. Refresh afterward to start playing.

6. Update Your Profile (Optional):

To show your name on the leaderboard instead of your public key, open the left sidebar (Ctrl+B, Cmd+B, or the bottom-left menu), update your name, save, and start a Random Match.

7. Reporting Issues:

If you see bugs, UI problems, wallet issues, or unexpected behaviour, please let us know immediately. Your feedback is extremely valuable.

## Wave 3 submission

Wave 3 Completion Summary

Match Results: Full support for checkmate, resign, stalemate, and timeouts. Match History: All Random matches now stored on the player chain as well as app_chain(use of DataBlob), and visible in the UI. Replay Support: Match data includes complete move history for future replay functionality(70% done, UI remains). Wallet Integration: Croissant wallet fully embedded, stabilized, and integrated into game flow. WASM Stability: Worker-thread issues fixed, SharedArrayBuffer enabled, paths resolved for production. Testing: Added core unit + integration tests for game logic, matchmaking, and profile updates. State Management: Migrated to Zustand for reliable state across sessions. UI Updates: Improved board, profile UI, and general gameplay experience.

PR for more info: https://github.com/Nirajsah/microchess/pull/21

Microchess: https://www.microchess.io/

PWS: https://github.com/Nirajsah/pws

## Wave 4 submission

During Wave 4, MicroChess delivered the first functional components of its tournament and replay systems, marking a major step toward structured competitive play. While not all planned tournament features were completed, the core foundations were successfully implemented and tested.

1. Tournament Creation & Registration

We implemented the first phase of the tournament system by enabling users to create tournaments and register participants on-chain. The creation flow, registration logic, validation steps, and backend integration are all completed, forming the base layer for fully automated tournaments in future waves.

2. Match Replay System Completed

Match Replay is fully implemented. MicroChess now stores move histories and reconstructs game states, allowing players to review finished matches. This feature provides transparency, supports player learning, and establishes the foundation for future tournament audit tools and analytics.

What Was Not Completed in Wave 4

Some features originally planned—such as automatic pairing, basic bracket flow, tournament-specific profile updates, and a bracket/matchup UI—were not finalized in this wave. These components require additional logic and validation, and will be completed as part of Wave 5.

Summary

Wave 4 successfully delivered the core foundation for tournaments and introduced a complete match replay system. We focused on building reliable, testable tournament infrastructure while improving backend stability and metadata handling. Although bracket flow and UI components remain in progress, the groundwork is now in place for Wave 5 to deliver full tournament automation and public tournament hosting.

PR for more info: https://github.com/Nirajsah/microchess/pull/23 microchess: https://microchess.io

## Wave 5 submission

In Wave 5, we delivered the core functionality required for public, decentralized tournaments on MicroChess and completed the full tournament lifecycle.

  • Implemented Tournament v2, allowing users to create, publish, and manage tournaments on-chain.
  • Completed the full tournament lifecycle: draft creation, player registration, round progression, and match advancement.
  • Added Swiss-format tournament logic, including participant management, pairing generation, round creation, and match-chain initialization.
  • Enabled live tournament round updates using database-backed synchronization.
  • Introduced a multi-chain tournament architecture, hosting tournaments on dedicated tournament chains with stable notification-driven updates.
  • Stabilized multi-chain workflows, wallet client switching, and cross-chain communication.
  • Finalized the Match Replay system, allowing players to replay completed games using stored move history and reconstructed board states.
  • Added new tournament UI components, including tournament lists, detailed tournament pages, round views (Swiss), and “My Tournaments”.
  • Improved validation and safety checks to prevent invalid tournament states and ensure correct round progression.
  • Optimized backend performance, realtime data flow, and tournament-related queries.
  • Migrated fully to Linera v0.15.8 and improved type safety using generated backend types.
  • Updated and expanded tests to align with the new tournament and replay architecture.

These updates deliver the first working version of public, decentralized tournaments on MicroChess and complete the goals set for Wave 5, preparing the platform for prizes, anti-cheat systems, and seasonal competition in Wave 6.

PR for more info: https://github.com/Nirajsah/microchess/pull/28 microchess: https://microchess.io pws: https://github.com/Nirajsah/pws

note: PWS acts as a proxy service between on-chain tournament logic and the MicroChess UI. It subscribes to events emitted by the app chain and also manages tournament-specific chains, which are implemented as multi-owner chains owned by both the tournament organizer and the PWS service. This allows tournament chains to remain active and continue processing messages(participants requests) 24/7, even when the organizer is offline.

As tournament state changes occur on these chains—such as registrations, round progression, or match creation—PWS processes those updates for every chain and sequentially syncs the data into Supabase. This enables the UI to display live, real-time tournament updates across all views.

By bridging multiple chains and ensuring continuous processing, PWS is essential for delivering reliable, scalable, and real-time tournament functionality in MicroChess.

## Wave 6 submission

In Wave 6, we focused on strengthening the fairness, correctness, and reliability of MicroChess’s competitive infrastructure. This final wave prioritized hardening tournament logic and gameplay enforcement to ensure the platform is stable and production-ready.

We refactored tournament and game contract logic to enforce strict lifecycle state transitions, preventing invalid states and ensuring correct round progression. Cross-chain communication was improved to increase reliability across tournament and match workflows. A Claim Forfeit feature was introduced, allowing players to enforce time-based match outcomes and strengthening competitive fairness.

Friendly matches now support wager agreements at the gameplay level. On-chain token transfer and settlement are intentionally not enabled, allowing wager logic to exist without introducing economic risk.

We added comprehensive backend test coverage for tournament lifecycles and replay-related blob storage, updated infrastructure to Linera v0.15.11, and refreshed Docker builds. On the frontend, we aligned wallet integration with the latest node-based APIs, fixed state synchronization issues, and improved tournament creation and replay stability.

Wave 6 concludes the buildathon with a hardened, reliable competitive system and a production-ready foundation for MicroChess.

PR for more info: https://github.com/Nirajsah/microchess/pull/29 microchess: https://microchess.io

Anti-cheat v1 is not covered in this PR,

note: due to some bug on the wallet side, after assigning a new chain, the chain does not listen for updates from other owner, this is only for assigning new chains, after refreshing the page/switching to a different chain and back to the game chain it starts working.. this is a bug, that needs more work...

## Wave 7 submission

...

Prizes

  • Wave 1 grant · 109.25 USDC
  • Wave 2 grant · 294.5 USDC
  • Wave 3 grant · 886.31 USDC
  • Wave 4 grant · 317.65 USDC
  • Wave 5 grant · 385.71 USDC
  • Wave 6 grant · 511.48 USDC
  • Wave 7 grant · 138.46 USDC

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.