- 1
How do i award points to my game code when the conditionals are running?
In my code, Rock Paper Scissors Lizard Spock, i'd like to count++ every time either computer wins a round or the user wins a round. There are only 3 rounds. A draw means both user and computer get a point, a win for computer means one point and none for user and a win for user means one point and none for computer. To win the game, either player must have 2 or 3 points whereas the other has 1 or zero points. Any Help?
1 Resposta
0
you sinply compare your player choice object with the computer choice object, if they are equal increase both scores, if computer won, increase its score, if player won increase playscore.
I dont really get your question tho, feel free to explain it in more detail. Ill try to help.