Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 0
- win = 0
- tie = 0
- lose = 0
- com_output_list = [
- ["0,0 com Invalid Set!"],
- ["1,0 com Invalid set!", "Com mixed Rock and Fire to make FireStone!", "Com mixed Rock and Water to make Water Stone!", "Com mixed Rock and Grass to make Mossy Stone!"],
- ["2,0 com Invalid Set!", "Com mixed Paper and Fire to make Kindling!", "Com mixed Paper and Water to make Soaking Towel", "Com mixed Paper and Grass to make Oragami Rose"],
- ["3,0 com Invalid Set!", "Com mixed Scissors and Fire to make Plasma Cutter", "Com mixed Scissors and Water to make Water Jet", "Com mixed Scissors and Grass to make Pointy Stick"]]
- output_list = [
- ["0,0 Invalid Set!"],
- ["1,0 Invalid set!", "You mixed Rock and Fire to make FireStone!", "You mixed Rock and Water to make Water Stone!", "You mixed Rock and Grass to make Mossy Stone!"],
- ["2,0 Invalid Set!", "You mixed Paper and Fire to make Kindling!", "You mixed Paper and Water to make Soaking Towel", "You Mixed Paper and Grass to make Oragami Rose"],
- ["3,0 Invalid Set!", "You mixed Scissors and Fire to make Plasma Cutter", "You mixed Scissors and Water to make Water Jet", "You Mixed Scissors and Grass to make Pointy Stick"]]
- com_i = 0
- com_t = 0
- com_combo = [com_i, com_t]
- cho_i = 0
- cho_t = 0
- combo = [cho_i, cho_t]
- def score():
- print "+------------------+\n| ~~SCORES~~ |\n+------------------+"
- print "|Total Games: ", count, " |"
- print "|Total Wins: ", win, " |"
- print "|Total Ties: ", tie, " |"
- print "|Total Loses: ", lose, " |\n+------------------+\n"
- raw_input("Press 'Enter' when you're ready to continue")
- def instructions():
- print """Instructions: Not yet done..."""
- def choose_item():
- global cho_i
- while count <= 1000:
- cho_item = raw_input("""
- +------------------+ +------------------+
- |Pick to Start Game| Or | Pick Menu Option |
- +------------------+ +------------------+
- | [Rock] | | [Help] |
- | [Paper] | | [Score] |
- | [Scissors] | | |
- +------------------+ +------------------+
- """).title()
- if cho_item == "Rock":
- cho_i = 1
- elif cho_item == "Paper":
- cho_i = 2
- elif cho_item == "Scissors":
- cho_i = 3
- elif cho_item == "Help":
- instructions()
- raw_input("Press 'Enter' when you're done reading...")
- continue
- elif cho_item == "Score":
- score()
- continue
- else:
- print "Invalid input. \nPlease type a valid screen option as indicated by a set of brackets"
- continue
- print "You've chosen", cho_item, "\n"
- break
- def choose_type():
- global cho_t
- while count <= 1000:
- cho_type = raw_input("""
- +------------------+
- | Pick an Element |
- +------------------+
- | [Fire] |
- | [Water] |
- | [Grass] |
- +------------------+
- """).title()
- if cho_type == "Fire":
- cho_t = 4
- elif cho_type == "Water":
- cho_t = 5
- elif cho_type == "Grass":
- cho_t = 6
- else:
- print "Invalid input. Please type 'Fire', 'Water', 'Grass'."
- continue
- print "You've chosen", cho_type, "\n"
- break
- def com_choose_item():
- global com_i
- import random
- while count <= 1000:
- com_i = random.randrange(3)+1
- if com_i == 1:
- print "The computer chose Rock"
- elif com_i == 2:
- print "The computer chose Paper"
- elif com_i == 3:
- print "The computer chose Scissors"
- else:
- print "Whoa whoa whoa! Something went terribly wrong with the computer!"
- break
- def com_choose_type():
- global com_t
- import random
- while count <= 1000:
- com_t = random.randrange(3)+4
- if com_t == 4:
- print "The computer chose Fire\n"
- elif com_t == 5:
- print "The computer chose Water\n"
- elif com_t == 6:
- print "The computer chose Grass\n"
- else:
- print "\aWhoa whoa whoa!\n Something went terribly wrong with the computer!\n"
- break
- def combo_namingv2():
- print "[", cho_i, cho_t, "]"
- print output_list[1][4]
- def com_combo_namingv2():
- print "[", com_i, com_t,"]"
- print com_output_list[4][1]
- def PvC_matchup():
- global tie
- global win
- global lose
- combo = [cho_i, cho_t]
- com_combo = [com_i, com_t]
- if combo == [0, 0] and com_combo == [0, 0]:
- tie += 1
- print "You and com failed to change global values 'combo', and 'com_combo'"
- print "You probably failed to change global values 'cho_i', 'cho_t'"
- print "Com probably failed to change global values 'com_i', and com_t"
- elif combo == [1, 4] and com_combo == [1, 4]:
- tie += 1
- print "Rock+Fire = Rock+Fire"
- print "You both burned your hands with your Fire Stones...\nYou Tie!"
- print "flv txt: You both take little damage"
- elif combo == [1, 4] and com_combo == [1, 5]:
- lose += 1
- print "Rock + Fire < Rock + Water"
- print "Computer's Water Stone cools your Fire Stone...\nYou Lose!"
- print "flv txt: You were mildly damaged!"
- elif combo == [1, 4] and com_combo == [1, 6]:
- win+=1
- print "Rock+Fire > Rock+Grass"
- print "Your Fire Stone burns Computer's Mossy Stone...\nYou Win!"
- print "flv txt: It's mildly effective!"
- elif combo == [2, 4] and com_combo == [1, 4]:
- win+=1
- print "Paper+Fire > Rock+Fire"
- print "You use computer's Fire Stones to protect your fire from the wind... \nYou Win!"
- print "flv txt: Water(def)-1, Wind(def) +1, fire(atk)+1"
- elif combo == [2, 4] and com_combo == [1, 5]:
- win +=1
- print "Paper+Fire > Rock+Water"
- print "You wrap your Kindling around the Computer's Fire Stone... \nYou Win!"
- print "flv txt: But not before Com's water quenches your fire... You now have normal paper..."
- elif combo == [2, 4] and com_combo == [1, 6]:
- win +=1
- print "Paper+Fire > Rock+Grass"
- print "You wrap your kindling aroound the Computer's Mossy Stone and burn him...\nYou Win!"
- print "flv txt: You dealt DOUBLE DAMAGE!"
- elif combo == [3, 4] and com_combo == [1, 4]:
- lose+=1
- print "Scissors+Fire < Rock+Fire"
- print "Your Plasma Cutter overheats...\nYou Lose"
- print "flv txt: You wait for your plasma cutter to cool down... you lose a turn"
- elif combo == [3, 4] and com_combo == [1, 5]:
- lose+=1
- print "Scissors+Fire < Rock+Water"
- print "Computer's water stone causes your Plasma Cutter to have a shortage!\nYou Lose!"
- print "flv txt: The shortage caused a back fire! You take extra damage!"
- elif combo == [3, 4] and com_combo == [1, 6]:
- lose+=1
- print "Scissors+Fire < Rock+Grass"
- print "Computer's Mossy Rock smashes your Plasma Cutter...\nYou Lose"
- print "flv txt: but you removed the moss off of the stone! Computer now has a plain Stone..."
- elif combo == [1, 5] and com_combo == [1, 4]:
- print "Rock+Water > Rock+Fire"
- print ""
- #Not completed
- def after_game():
- global count
- count+=1
- score()
- ask_new_game()
- def ask_new_game():
- print "Do you want to try again?"
- chois = raw_input("'Yes' or 'No'?").title()
- if chois == 'Yes':
- main()
- elif chois == 'No':
- raw_input("Press 'Enter' to quit the game")
- else:
- print "Invalid input, type 'Yes', or 'No' only"
- ask_new_game()
- def main():
- choose_item()
- choose_type()
- #combo_namingv2()
- com_choose_item()
- com_choose_type()
- #com_combo_namingv2()
- PvC_matchup()
- after_game()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement