This repository contains the Solana smart contract (Anchor program) for SolFrag, a fast-paced multiplayer first-person shooter built for the web with blockchain integration.
- Play the Game: solfrag.codepankaj.tech
- Client Repository: SolFrag
- Server Repository: SolFrag-Server
Program ID: HTewvNaFXBYjBnEixXXGUAHwjU2yAJbAAdDfouzm3a51
The SolFrag on-chain program manages game matches on Solana, including:
- Creating matches with configurable win conditions
- Player registration and match joining
- Kill tracking and score management
- Match finalization and state verification
The program exposes the following instructions:
create_match(match_id, win_points)- Initialize a new game matchjoin_match()- Join an existing match as a playerrecord_kill(victim)- Record a kill event in the matchfinish_match()- Finalize and close the match