The card game I'm creating is for two players, one user and the other player will be the computer. In general, this is what is suppose to happen:
The player starts off the game then the computer plays then player again then computer again and so on..
If the player is unable to play after the computer played well then the player has to skip a turn. Whenever the player skips a turn, the computer automatically wins the round and starts the next round.
If the computer skips his turn on the other hand, he will lose the round and the player gets to play first in the new round. At the end of each play, a function checks to see if the player or computer's hand is empty. The first one to have an empty hand wins the game.
I've created all my functions as it relates to playing the game. However, to get the game to run in this manner is quite confusing to me. I would like to think that I have to use a while loop but I don't know how to go about this to get my game running as I want it to.
Can someone guide me on this and what I can do to get the game working?
Any help is appreciated. Thank you