import arcade
SCREEN_WIDTH = 600
SCREEN_HEIGHT = 600
arcade.open_window(SCREEN_WIDTH, SCREEN_HEIGHT, "Drawing Example")
arcade.set_background_color(arcade.color.WHITE)
arcade.start_render()
x = 300
y = 300
radius = 200
arcade.draw_circle_filled(x, y, radius, arcade.color.YELLOW)
x = 370
y = 350
radius = 20
arcade.draw_circle_filled(x, y, radius, arcade.color.BLACK)
x = 230
y = 350
radius = 20
arcade.draw_circle_filled(x, y, radius, arcade.color.BLACK)
x = 300
y = 280
width = 120
height = 100
start_angle = 190
end_angle = 350
arcade.draw_arc_outline(x, y, width, height, arcade.color.BLACK, start_angle, end_angle, 10)
arcade.finish_render()
arcade.run()
import random
import time
computerwins = 0
playerwins = 0
ties = 0
end = 0
while True:
choices = ["rock",
"paper",
"scissors"]
userChoice = raw_input("Rock, Paper, Scissors, or End")
computerChoice = (random.choice(choices))
print(computerChoice)
if userChoice == computerChoice:
time.sleep(0.5)
print("Tie!
")
ties += 1
end += 1
elif userChoice == "rock":
if computerChoice == "paper":
time.sleep(0.5)
print("Computer Win!
")
computerwins +=1
end += 1
else:
time.sleep(0.5)
print("Player win!
")
playerwins += 1
end += 1
elif userChoice == "paper":
if computerChoice == "rock":
time.sleep(0.5)
print("Player win!
")
playerwins += 1
end += 1
else:
time.sleep(0.5)
print("Computer win!
")
computerwins += 1
end += 1
elif userChoice == "scissors":
if computerChoice == "rock":
time.sleep(0.5)
print("Computer win!
")
computerwins += 1
end += 1
else:
time.sleep(0.5)
print("Player win!
")
playerwins += 1
end += 1
elif userChoice == "end":
choices.append("end")
print("
Great game!
")
print("Total score for computer: ", computerwins, "wins!")
print("Total score for player: ", playerwins, "wins!")
print("Total ties: ", ties, "ties!")
time.sleep(2)
break
import time
import random
Password = ['1', '2', 'a', 'G', '5', '89']
answer = input('Guess the password')
print(random.choice(Password)+' is the password')