This project is generated with the create-solana-dapp generator.
This project is a blockchain-based Texas Holdem Poker Quiz that challenges users to choose between two poker hands and determine which one has a higher chance of winning. The game quiz covers different stages of a poker round: preflop, flop, turn, and river, allowing users to analyze the odds and make decisions based on each stage. User score and address are saved on the Solana blockchain.
PokSol is a first of its kind on-chain experience for all recreational and professional enjoyers of the game of Hold-Em Poker.
Following the path of classical poker communities like PokerStars and GGPoker we want to become the GO TO place for everything poker - with an on-chain twist on Solana. By incentivizing users with tokens and other rewards we want to create both an educational and professional platform for all types of players.
PokSol features a play-to-earn model. Each week, players compete by answering quiz questions and selecting the poker hand with the highest chance of winning. Your performance is reflected on the leaderboard, and the top player each week will receive free tokens as a reward!
After result is saved to blockchain:
-
Node v18.18.0 or higher
-
Rust v1.77.2 or higher
-
Anchor CLI 0.30.1 or higher
-
Solana CLI 1.18.17 or higher
git clone https://github.com/0xRustPro/solana-poker-casino-game
cd solana-poker-casino-gamenpm installnpm run dev
This is a Solana program written in Rust using the Anchor framework.
You can use any normal anchor commands. Either move to the anchor directory and run the anchor command or prefix the command with npm run, eg: npm run anchor.
Running this command will create a new keypair in the anchor/target/deploy directory and save the address to the Anchor config file and update the declare_id! macro in the ./src/lib.rs file of the program.
You will manually need to update the constant in anchor/lib/counter-exports.ts to match the new program id.
npm run anchor keys syncnpm run anchor-buildnpm run anchor-localnetnpm run anchor-testnpm run anchor deploy --provider.cluster devnetThis is a React app that uses the Anchor generated client to interact with the Solana program.
Start the web app
npm run devBuild the web app
npm run build

