Skip to content
View gashaw11's full-sized avatar

Block or report gashaw11

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
gashaw11/README.md

import random, sys wins = 0 losses = 0 ties = 0 print("gashaw1223") while True: print(f"{wins} wins, {losses} losses, {ties} ties") while True: print("enter r, p, s, or q") user = input()

    if user == 'q':
        sys.exit()
    elif user == 'r' or user == 'p' or user == 's':
        break
randomNum = random.randint(1, 3)
if randomNum == 1:
    computer = 'r'
elif randomNum == 2:
    computer = 'p'
elif randomNum == 3:
    computer = 's'
if user == computer:
    ties = ties + 1 
elif user == 'r' and computer == 'p':
    losses = losses + 1 
elif user == 'p' and computer == 's':
    losses = losses + 1 
elif user == 's' and computer == 'r':
    losses = losses + 1 
elif computer == 'r' and user == 'p':
    wins = wins + 1 
elif computer == 'p' and user == 's':
    wins = wins + 1 
elif computer == 's' and user == 'r':
    wins = wins + 1 

Popular repositories Loading

  1. first first Public

  2. readme readme Public

  3. readm readm Public

  4. gashaw11 gashaw11 Public

    Config files for my GitHub profile.

    Python

  5. conways conways Public

    Python

  6. html html Public

    html

    HTML