This project uses a traditional but simple game, which is 2048, add tiles of the same number to get the tile of 2048, We are trying to implement this on blockchain adding the numbers and increasing your score. When the highest score is reached for a user after a game is over, then he/she can create an NFT Scorecard using the same, freely mint the same. Those cards can be further used in a duel which will be done on the blockchain. An opponent can use his/her card to play the duel and once accepted a challenge both the participants have to stake some amount in the pool. We will destroy the NFT cards which will be used and using them we will decide who will win the duel challenge, and the winner will get the rewards.

NFT Game Card showcase

How it's made

the backend is in Nodejs and the frontend is on vanilla js. We will be using the Polygon chain to use the smart contract to store all the information. We are using NFTPort and to save files and metadata needed to create an NFT. There are more than 39 million permutations for the 2048 game tiles, thus there is uniqueness in that and we have also taken in account the score when the game is over. After the unique NFT is created, users can use that NFT to battle with each other. Players will duel with one another and depending on there NFT choice its score will be used to decide who wins the battle. We have also implemented burning of NFT of only winner as he/she would get all the rewards that has been staked.