Ask coding questions

← Back to all posts
Sound? (Python 3)
Vorden999 (1)

Is there anyone way to make sound with python 3, i would like to add sound to my incredible BlackJack game, is this possible?

Commentshotnewtop
AllAwesome497 (367)

If it is a terminal game, then no, sound is currently not supported. If it is on a site though, then yes, you can.

Vorden999 (1)

@AllAwesome497 What you mean mate? im made confused please explain, im using repl.it

AllAwesome497 (367)

@Vorden999 OK, so you are running the game in the console, that is where the user plays the game. Since you are not running it in a website, sadly you will not be able to play audio.

AllAwesome497 (367)

I got your game from your profile. https://repl.it/@Vorden999/BlackJack. Btw the first card is hidden, and the second card is shown in blackjack.

Vorden999 (1)

@AllAwesome497 I don;t Know what you mean by "the first card is hidden, and the second card is shown in blackjack." BEcause my code only shows the first card of the dealer, the second is hidden, and can't you see what your own cards are?

AllAwesome497 (367)

@Vorden999 nonono u misunderstood me- The dealers first card is hidden, then the second card they draw is shown.

Giothecoder (127)

Does it matter what kind of sound? Someone posted recently on share a thing that just used the bell character which was cool and worked.

AllAwesome497 (367)

@Giothecoder yeah that does it but i don't think that's what he wants.

Vorden999 (1)

@Giothecoder it dosen't matter which kind of sound, how?

Giothecoder (127)

@Vorden999 I think for python it’d be print( str(7) )? I’m not sure.

Giothecoder (127)

@Vorden999 wait nope it’s print('\a').