I created a poker game with bubble. I have a database of Playing Cards with 52 cards and a picture of each card. I played with my friends after I finished building the app and it went well. We didn’t play again for 6 weeks. When we tried to play again the database that held the cards seemed to have a lot of missing images or it could not find the images. So when the cards were dealt people couldn’t see their cards. I don’t know why. After playing with the app for an hour all the images started showing up again. And the app is working as designed. Any thoughts on what was going on? I want to avoid this next time we play again. TIA
Maybe it was a caching issue? Bubble are usually pretty quiet on these kind of issues unless a lot of people complain.
hi mister M
could you please tell me how you calculate the winner hand on your poker game ??
i m creating too a poker game
thanks
I never got to determining winning hands. The app was created during covid so I wanted to add video chat and we just determined the winner ourselves. I’d love to see your app once you are done.
okok…i ll show you when it s done
thanks
and for the card distribution did you use a card generator ?
can i see yours please?
I did not use a card generator. I don’t think I was able to find one back then but they seem to exist today. I number the cards from 1-52 and called a random Integer API that had a parameter that did not return duplicates. Then the number were assigned to the players and then the dealer. These numbers matched with an image of cards and thats how it was displayed.
Here it is
Tournament In Progress (bubbleapps.io)
if you choose the player “Minh” type in 456 and Verify then you will see that players cards.
thanks a lot !!
merci,is it possible to see your workflow??
This API returns random numbers from 1-52. The Body num is the number of unique number tor return. So TounamentResults count is actually # or players *2 plus the 5 cards for the Dealer. This is stored in a Array called DeatlCardList. So the first 2 belong to player 1 next 2 belong to player 2 and the last 5 belong to the dealer
Thanks a lot