Coding Global Background
Coding Global

Structuring BlackJack game

Archived 2 years ago
1 messages
1 members
2 years ago
Open in Discord
H
HKSQuaresma
Verified

Hi everyone 🙂 I created a blackjack game initially with Python and want to embed this now on my webpage and rewrite it in JS. I pretty much have the most functionality like dealing cards, hitting, doubling etc. But I am really struggling with how to put it all together with different game phases. I have several buttons for that and added an eventlistener to them. But those can be pressed at any moment. What I want is to keep the player in the boundries and only let them choose the action in the allowed moment. Do you have any ideas how to accomplish this?

Replies (1)