Name: Anonymous 2018-08-08 9:11
ITT we discuss how to collaboratively design our games.
#!/usr/bin/env python3
userDegrees = int(input("Enter degrees for rotation: "))
if userDegrees == 360 or userDegrees == 0:
print("No rotation necessary")
elif userDegrees < 360 and userDegrees > 180:
#example: 200 becomes -160
finalDegrees = userDegrees - 360
print("Rotate it by " + str(finalDegrees) + " degrees")
elif userDegrees <= 180 and userDegrees > 0:
print("Rotate it by " + str(userDegrees) + " degrees")
elif userDegrees < 0 and userDegrees >= -180:
finalDegrees = userDegrees + 360
print("negative testing: " + str(finalDegrees))
else:
print("range error")
print("this is not the most efficient way to write it but I am drunk")