Skip to content

code-pankaj/SolFrag-OnChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SolFrag - On-Chain Component

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.

πŸ”— Project Links

πŸ“œ Deployed Program (Devnet)

Program ID: HTewvNaFXBYjBnEixXXGUAHwjU2yAJbAAdDfouzm3a51

View on Solana Explorer

πŸ“– About

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

Program Instructions

The program exposes the following instructions:

  • create_match(match_id, win_points) - Initialize a new game match
  • join_match() - Join an existing match as a player
  • record_kill(victim) - Record a kill event in the match
  • finish_match() - Finalize and close the match