Ask your own question, for FREE!
Computer Science 11 Online
OpenStudy (sydthekid913):

Why isn't the function comp_play running????

OpenStudy (sydthekid913):

https://repl.it/COli/92

OpenStudy (rsmith6559):

Put some debugging code into your code to figure it out. Even print statements at the beginning and end of each function will let you track down where the problem is.

OpenStudy (latinc):

Second change the way you deal the cards, it looks like every single functions deals different cards; user_play, comp_play, and compare all have their own individual draw of random cards, maybe make one function for dealing cards, one function to hold the dealers hand, another to hold the players hand, and one to compare the hands.

OpenStudy (sydthekid913):

thanks @latinC I just made global variables and added comp_play to the last function that runs the functions individually.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!