Coding Rock Paper Scissors On Python | Advanced Tutorial

preview_player
Показать описание
In this simple addition to the beginner code, this Rock Paper Scissors opponent has the ability to lie about what it will play, by baiting you to throw the wrong object. This is the closest thing I have made to an Artificial Intelligence…pretty neat anyways.

NOTE: The number in line 18 can be anything between 1 and 10. I just chose 4 because it causes the robot to be truthful about 50% of the time.

Comment any questions you have about the code.
Рекомендации по теме