Skip to content

main.py #383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Rock_Paper_Scissors_Spock/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# WHILE LOOP TO SET THE NUMBER OF ROUNDS
while count != 6:
# INPUT FOR PLAYER'S CHOICE
player = input("What is your move? ")
player = input("What is your move? ").strip().capitalize()
# COMPUTRON RANDOMLY SELECT CHOICE FROM CHOICES LIST
computer = random.choice(choices)
# UNCOMMENT THE LINE BELOW IF YOU WISH TO SEE COMPUTRONS' CHOICE
Expand Down Expand Up @@ -98,7 +98,8 @@
print("")

# INCREMENT TO CONTROL THE NUMBER OR ROUNDS
count += 1
print(f"Current Score — You: {playerPoints}, Computron: {computerPoints}\n")
count += 1

# COMPARISON TO DETERMINE WHO IS THE CHAMPION
if playerPoints > computerPoints:
Expand Down