project screenshot 1
project screenshot 2
project screenshot 3

HackJack

HackJack is a Web3 Black Jack game. Players earn NFTs based on the results of their games, which can be sold on the Zora marketplace. We aims to tackle the scams and trust requirements for players, so that they have a fair experience and sovereignty over their money.

HackJack

Created At

Metabolism

Winner of

trophy

🧙‍♂️ nft.storage — Storage Wizard

Project Description

HackJack is a revolutionary web3 game. It's blackjack on the Blockchain, solving significant problems with online casinos. Users of online casinos today have no control of their bankroll, no way to verify the odds of the casino, and considerable friction creating an account. HackJack solves these issues by utilizing smart contracts and Chainlink VRF Oracles. It implements a fully functional, verifiably random blackjack experience. HackJack aims to improve trust for players so that they have a fair experience and sovereignty over their money. Players earn NFTs for winning hands, which they can sell on a Zora marketplace or burn to join the HackJackDAO. HackJackDAO allows users to vote on where the contract's profits are donated. With two clicks, anyone on the internet with a crypto wallet can enjoy a hand of fair blackjack. It also donates 1% of all profit to public goods charities. The $65 billion online gambling market is ripe for disruption, and HackJack is leading the way with web3 innovation.

HackJack Functionality

  • Blackjack algorithm
  • Chainlink VRF to generate truly random numbers
  • Player's hand data structure contains their hand + dealer’s hand
  • Mint an NFT if the player wins the hand
  • NFTs are stored on IPFS and then pinned to NFT.storage for permanent storage
  • Users can sell their NFTs on Zora or burn them to join the HackJackDAO
  • The HackJackDAO controls the smart contracts 1% donation to charities

Future Upgrades

  • Allow users to lend money to the protocol, using their money as capital for the bank, generating interest on the player's bets
  • Incentivize playing and lending using the HackJackDAO token
  • Generative NFT based on the cards in the hand
  • Multiple players can play against the same dealer
  • Deploy to other chains: Ethereum, BSC, Solana, Rollups, Arbitrum, etc.
  • Also, mint another NFT when a hand starts, which users can sell before finishing the hand
  • Add rarity attributes to NFT separate from cards, so users can get lucky and get a super rare hand and sell it instead of playing blackjack

How it's Made

HackJack uses Scaffold-eth as a template for rapid development. The frontend is React, Tailwind-css, and NextJS. We used Solidity as the programming language for the smart contract which was deployed to the polygon blockchain. The randomness is integrated from Chainlink VRF, and Zora was used for listing NFTs on the marketplace. NFT storage was used to permanently store NFTs. We also used OpenZeppelin libraries, Brownie, Hardhat.

Sponsor tech benefits: NFT storage: Smooth experience for our requirements of long-term decentralized pinning Polygon: Incredibly low fees, intuitive developer tools, and fast transactions Zora: Developer friendly tools for integrating NFTs into our project

background image mobile

Join the mailing list

Get the latest news and updates