Open nlok5923 opened 4 months ago
After a short call, we can assume that
WORD
s[account_id, card_1, card_2, position]
Then, the Account needs the following procedures:
proc.initiate_game
# => Account stores players represented by a WORD to memory slots
proc.encrypt_cards
# => Account encrypts the card array
proc.initiate_shuffling
# => Account creates a note containing the encrypted card array that gets passed to every player
proc.finalize_shuffling
# => The last player stores the final shuffled card array in the account
proc.deal_cards
# => Account loops over players and stores card info and sends notes with card info to each player
Hi Guys!
Can you help me write MASM code for the below
dealing
procedure for a poker game.Pseudo code for the dealing procedure
Description: Given a deck of cards where the cards are already encrypted and shuffled using dealing procedure we need to distribute the card among regular update accounts.
For now let’s assume that the card is a struct and we need to deal cards among 4 regular updatable account
Pseudo code for dealing