Inspiration
We decided to create this project to showcase how a simple DAG transaction can be the main mechanic for a PVP simple game on-chain. The way the game rules are setup it allows any participant to potentially win more than their deposit, and the minimum 5 DAG transaction allows for anyone to participate.
What it does
DAG Royale is a blockchain-based battle game where players deposit a minimum of 5 DAG tokens to join daily rounds. Players compete by depositing tokens, with the top contributor earning the largest portion of the prize pool. The game resets every 24 hours, redistributing rewards between the top player and all participants. This creates a dynamic and competitive environment, encouraging users to engage daily. From the total prize 5% is kept by the game to be used as follow: 2.5% will be used to fuel future rounds if needed to attract more players with relevant prizes, and the remaining 2.5% would be distributed to charity, public goods on the network or social goods project. The end goal is that DAG Royale ends up being net positive to the network as a whole and hopefully to the world in a small manner.
How we built it
We used the simplest stack we could think of, we have a frontend in HTML,JS,CSS and a backend in Express node and postgres. We leverage the public APIs from the DAG Explorer and dag4js for prize distribution. The game is hosted on Replit.
Challenges we ran into
Not a lot of challenges to be honest. Trying to get the correct game mechanics is probably what took more time.
Accomplishments that we're proud of
We are proud of the game idea and how simple it is!
What we learned
How to use dag4js, the blockexplorer APIs and how easy it is to build on Constellation even without needing to build a metagraph
What's next for DAG Royale
If we are successful we would love to launch this on mainnet. We would need to monitor the first rounds of the game and probably implement some rule that reduce the incentives to just wait last minute to snipe the top prize by just sending the biggest transaction last minute. This can be done with incentives and boost for early depositors for example. Also the 2.5% from each round that will be allocated towards charitable efforts will need a plan to find the best way to decide where these funds would be allocated. An idea would be to have the top winner of each round decide from a range of options where the funds should be allocated towards.

Log in or sign up for Devpost to join the conversation.