Welcome to the CTF (Capture The Flag) Game project!
This project is a fight between users to be the last person holding the flag when the game ends. The Users are limited by their health which reduces on every capture they do.
Run solana-test-validator in terminal
In /ctf
anchor build anchor deploy
In /frontend
yarn dev
A competitive game where players capture a flag by paying a fee and spending health.
The last player to hold the flag when the timer ends wins the prize.
Games run for a fixed duration (e.g. 2 hours).
If a flag is captured in the final 5 minutes, the game auto-extends by 5 minutes.
Players have a limited amount of health.
Capturing the flag reduces health (base: 15, increases as global captures rise).
No health regeneration โ forces strategic planning.
Each flag capture requires a lamport payment.
Funds are stored in a PDA vault and distributed to the winner and protocol at game end.
Winner receives 80% of the prize pool.
Protocol (or admin) gets 20% โ can be used for future rewards, fees, etc.