filmov
tv
Python project - Rock Paper Scissors

Показать описание
This is a simple program that allows the user to play Rock Paper Scissors game with the computer.
- A function was defined which contains all the logic and it was called.
- A while loop was used to repeat the program in a loop unless the user quits the program.
- A list was used to collect the 3 actions that needs to be done by a computer during it's turn.
- If else conditions were used to determine the score of both computer and user.
- A function was defined which contains all the logic and it was called.
- A while loop was used to repeat the program in a loop unless the user quits the program.
- A list was used to collect the 3 actions that needs to be done by a computer during it's turn.
- If else conditions were used to determine the score of both computer and user.