Inspiration
We were inspired by the old-school FinalFantasy Triple Triads minigame, where players bet one of their cards and play a quick game on a 3x3 grid.
What it does
Every player bet an amount of DAI, and choose 5 cards between all the Aavegotchi NFT's that they got. Once that the match start, our smart contract handle the deposit of the funds into the Aave vaults so it's generating yield while players are on their match.
As the game starts, you will have to take turns with the other player to place the cards on the 3x3 grid, and strategize on how to best use the traits of your NFTs to win the battle against the opponent. The objective is to "FLIP" the opponent's cards by placing your cards next to theirs, and having the adjacent skills be stronger than the opponent's. After 9 turns, the game finishes when the 3x3 spaces of the grid are filled, and the player with more cards of their color wins the bet.
How we built it
The smart contracts were built using hardhat and EIP-2535 diamond standard. While the front-end part is built in Next-js and tailwind
Challenges we ran into
For sure thinking about the security of the smart-contract, because has to handle all the players deposit.
Accomplishments that we're proud of
Creating a funny game that is also linked with defi protocol and that allow the user to bet and win a greater percentage of the bet, contrary to web2 gamble app.
What's next for Aavegotchi Triads
We are going to deploy a beta test with small bet sizes on polygon mainnet, so that we can do a test on the mainnet it self instead of in the forked polygon mainnet, were we had to work, to use aavegotchi safely.
Built With
- alchemyapi
- hardhat
- next.js
- solidity
- tailwind
Log in or sign up for Devpost to join the conversation.