ShallWeMove is Decentralized Casino of SUI ecosystem.
Enjoy Blackjack at ShallWeMove🔥!!
Get Started
Architecture
Objects
Fucntions
Dealer
Player
Main logic of ShallWeMove Blackjack is developed by SUI Move.
All players can observe the smart contracts of ShallWeMove and enjoy transparent blackjack game at Decentralized Casino.
To ensure transparency and fairness of blackjack game, ShallWeMove utilized the Object of SUI.
There are 5 types of objects for ShallWeMove Blackjack game. They enables decentralized casino which operates blackjack game totally onchain.
- GameTable
- Hand
- CardDeck
- Card
- MoneyBox
GameTable is essential object to play blackjack
it wrap objects like below
is_playing = 0 : not ready / 2 : game ready / 10 : game is playing
player and delear with Hand can hold some cards
a set of cards, total_cards_number refers to the quantity of cards in a deck.
When card is open, card number is number.
In other hand, when card is flipped over, card number is some cryptogram
place to store betting money
dealer action from BE
This function will be executed in the Backend
dealer or anyone who wanna be a dealer can create new game
dealer action from BE
can create game table for blackjack game with game info object
create a card deck, a dealer hand and a money box
the objects created will be transfered to game table
player action from FE
transfer player hand to game table and bet some money
dealer action from BE
transfer cards to player and dealer hand to play game
dealer action from BE
tansfer a card to player hand
dealer action from BE
finish game
- GameTable
- PlayerHand
- DealerHand
- CardDeck
- Cards : [Card...]
- MoneyBox
- Stake : [Coin...]
- DelaerHand
- Cards : [Card...]
- CardDeck
- Cards :[Card...]
- MoneyBox
- Stake : [Coin...]
- PlayerHand
- [Card...]