print("<><><><><><><><><><><><><><><><><><><><><><><><><><><><>") print("Computer lives: ", gamea.computer_lives, "/", gamea.total_lives, "\n") print("Human lives: ", gamea.player_lives, "/", gamea.total_lives, "\n") print("Choose your weapon!\n") print("<><><><><><><><><><><><><><><><><><><><><><><><><><><><>") Human = input("choose rock, paper or scissors: ") Human = Human.lower() print("computer chose ", gamea.computer, "\n") print("Human chose ", Human, "\n") #### this is where you would call compare compare.comparechoices(gamea.computer, Human) ### end compare stuff # handle all lives lost for player or AI if gamea.player_lives is 0: winlose.winorlose("lost") elif gamea.computer_lives is 0: winlose.winorlose("won") else: # need to check all of our conditions after checking for a tie gamea.Human = False gamea.computer = gamea.choices[randint(0, 2)]
print("Player lives: ", gameVars.player_lives, "/5\n") print("Choose your weapon!\n") print("***************************\n") gameVars.player = input("choose rock, paper or scissors: ") gameVars.player = gameVars.player.lower() print("---------------------------") print("computer chose", gameVars.computer, "\n") print("player chose", gameVars.player) print("---------------------------\n") if gameVars.player.lower() == "quit": exit() ### this is where you would call compare print(compare.comparechoices(gameVars.player, gameVars.computer)) ### end compare stuff # handle all lives lost for gameVars.player or AI if gameVars.player_lives is 0: winlose.winorlose("lost") #print("Out of lives! Good try. Would you like to play again?\n") #hoice = input("Y / N") #print(choice) #if (choice is "N") or (choice is "n"): # print("You chose to quit") # exit() #elif (choice is "Y") or (choice is "y"): # reset the game so that we can start all over again
"\n") print("Choose your weapon!") print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~") gameVars.player = input("choose rock, paper or scissors:") print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~") gameVars.player = gameVars.player.lower() print("computer chose", gameVars.computer, "\n") print("player chose", gameVars.player, "\n") ### this is where function should be if gameVars.player.lower() == "quit": print("Already Quit. ⚆_⚆ ") elif gameVars.player == gameVars.computer: compare.comparechoices("computer", "player") elif gameVars.player != gameVars.computer: compare.comparechoices("computer", "player") ### compare need put it here # handle all lives lost for player or AI if gameVars.player_lives is 0: winlose.winorlose("lost") # print("Out of lives! You suck at this game. Would you like to play again?\n") # choice = input("Y / N") # print(choice) # if (choice is "N") or(choice is "n"): # print("You chose to quit.") # exit()
print("==========Choose Your Weapon First!==========") gameVars.player = input("Choose rock, paper or scissors: ") gameVars.player = gameVars.player.lower() print("\n*****************************") print("computer chose: ", gameVars.computer, "\n") print("\tVS\n") print("player chose: ", gameVars.player) print("*****************************") print("\tResult:") #this is where I call compare if gameVars.player.lower() == "quit": compare.comparechoices("quit") elif gameVars.player.lower() == "rock": compare.comparechoices("rock") elif gameVars.player.lower() == "paper": compare.comparechoices("paper") elif gameVars.player.lower() == "scissors": compare.comparechoices("scissors") else: compare.comparechoices(" ") # if gameVars.player.lower() == "quit": # print("Your chose " + status, ". Game Over!") # exit() # elif gameVars.computer_lives == gameVars.player: # print("tie! no one wins, play again") # gameVars.Round=gameVars.Round+1
print("↣↣↣↣↣↣↣↣↣Choose your weapon↣↣↣↣↣↣↣↣↣!") print("●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬๑۩۩๑▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬● ") config.player = input("choose rock, paper or scissors: ") config.player = config.player.lower() print( "●▬▬▬▬▬▬▬▬▬▬▬▬▬▬computer chose▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬● ", config.computer, ) print( "●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬player chose▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬● ", config.player, ) ### this is where you would call compere ### end compare stuff compare.comparechoices(config.computer, config.player) # handle all lives lost for config.player or AI if config.player_lives is 0: winlose.winorlose("lost") elif config.computer_lives is 0: winlose.winorlose("won") else: # need to check all of our conditions after checking for a tie config.player = False config.computer = config.choices[randint(0, 2)]
# set player to True print("**********************************") print("Computer lives: ", gameVar.computer_lives, "/5\n") print("Player lives: ", gameVar.player_lives, "/5\n") print("Choose your weapon!\n") print("**********************************") player = input("choose rock, paper or scissors: ") player = player.lower() print("computer chose ", computer, "\n") print("player chose ", player, "\n") ###this is where you would call compare compare.comparechoices(player, computer) ### end compare stuff # handle all lives lost for player or AI if gameVar.player_lives is 0: winlose.winorlose("lost") elif gameVar.computer_lives is 0: winlose.winorlose("won") else: # need to check all of our conditions after checking for a tie print("********************************") gameVar.player = False