/ITHS-Python-Programming

Laboratory submissions

Primary LanguageJupyter Notebook

ITHS-Python-Programming

Laboratory submissions

Laboratory 1 - Project 3: Rock-Scissors-Bag Game!!

** Steps:

  1. Import required libraries
  2. Choose 1 for Rock, 2 for Scissors, or 3 for Bag
  3. computer choice is randomly generated between 1 and 3
  4. accept users's choice
  5. check who is winner as per given rules
    • rock wins over scissors, scissors wins over bag, and bag wins over rock. If both choose the same option, it is a tie
    • The game continues until player or computer wins

How to play Game

  1. Welcome message
  2. Enter player choice between 1 and 3
  3. Then player and computer choice is displayed
  4. Finally Result is displayed
  5. If tie happens then game will continue until one of them wins