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 in range(1000):
- cho_item = raw_input("""
- +------------------+ +------------------+
- | Pick Menu Option | |Pick to Start Game|
- +------------------+ +------------------+
- | [Help] | | [Rock] |
- | [Score] | | [Paper] |
- | | | [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
- return cho_i
- def choose_type():
- global cho_t
- while count in range(1000):
- cho_type = raw_input("""
- +--------------+
- | Pick One |
- +--------------+
- | [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
- return cho_t
- def com_choose_item():
- import random
- global com_i
- 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
- return com_i
- def com_choose_type():
- import random
- global com_t
- 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
- return com_t
- def combo_namingv2(cho_i,cho_t):
- print cho_i, cho_t
- print(output_list[cho_i][cho_t])
- def com_combo_namingv2(com_i,com_t):
- print com_i, com_t
- print(com_output_list[com_i][com_t])
- def PvC_matchup():
- global tie
- global win
- global lose
- 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...\n You Tie!"
- print "flv txt: You both take little damage"
- elif combo == [1, 4] and com_combo == [1, 5]:
- count += 1
- lose += 1
- print "Rock + Fire < Rock + Water"
- print "Computer's Water Stone cools your Fire Stone...\n You 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...\n You Win!"
- print "flv txt: It's mildly effective!"
- elif combo == [2,4] and com_combo == [1,4]:
- lose+=1
- print "paper+fire > rock+fire"
- print "You use computer's Fire Stones to protect your fire from the wind... Win!"
- print "flv txt: Water(def)-1, Wind(def) +1, fire(atk)+1"
- elif combo == [2,4] and com_combo == [1,5]:
- lose+=1
- print "paper+fire > rock + water"
- print "You wrap your Kindling around the Conmputer's Fire Stone... You Win!"
- print "flv txt: "
- #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