Python Game (4.0.0)
Python Game (4.0.0)
if (Number <= First_chance_change): #If the first number is bigger than the Random-Number,
StorageList.append(Targetlist[0]) #The first 'box' in Targetlist will storage in to the 'StorageList'
elif (Number >= Second_chance_change and Number <= Third_chance_change): #If the second number
is smaller and the third number is bigger than the Random-Number,
StorageList.append(Targetlist[1]) #The second 'box' in Targetlist will storage in to the
'StorageList'
elif (Number > Third_chance_change): #If the third number is smaller than the Random-Number,
StorageList.append(Targetlist[2]) #The third 'box' in Targetlist will storage in to the 'StorageList'
return list(StorageList) #The result is a list and those 'boxes' in the StorageList
elif (player == 'Rock' and robot == 'Scissor'): #If player's choice is equal to "Rock" and robot's choice
is equal to "Scissor",
print('You win!') #Player win
player_point += 1 #Player's point increase by 1
points()
result()
elif (player == 'Scissor' and robot == 'Paper'): #If player's choice is equal to "Scissor" and robot's
choice is equal to "Paper",
print('You win!') #Player win
player_point += 1 #player's point increase by 1
points()
result()
elif (player == 'Paper' and robot == 'Rock'): #If player's choice is equal to "Paper" and robot's choice
is equal to "Rock",
print('You win!') #Player win
player_point += 1 #player's point increase by 1
points()
result()
elif (robot == 'Rock' and player == 'Scissor'): #If robot's choice is equal to "Rock" and player's choice
is equal to "Scissor",
print('Robot win!') #Robot win
robot_point += 1 #robot's point increase by 1
points()
result()
elif (robot == 'Scissor' and player == 'Paper'): #If robot's choice is equal to "Rock" and player's
choice is equal to "Scissor",
print('Robot win!') #Robot win
robot_point += 1 #robot's point increase by 1
points()
result()
elif (robot == 'Paper' and player == 'Rock'): #If robot's choice is equal to "Rock" and player's choice
is equal to "Scissor",
print('Robot win!') #Robot win
robot_point += 1 #robot's point increase by 1
points()
result()
else:
print('No other letter or special word.') #If no, print this.