Advertisement
coding_giants

python starter

May 24th, 2023
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. import random
  2.  
  3.  
  4. #games are all the titles of games that the program can use; participants can give their own propositions
  5. games = ["Pokemon(1)", "Fortnite(2)", "Minecraft(3)", "CS(4)"]
  6. #list_of_games_to_guess is the variable into which we insert the password to guess
  7. list_of_games_to_guess = []
  8. #list_of_entered_games is a list of games entered by the user
  9. list_of_entered_games = []
  10. ###EVERYTHING ABOVE IS A STARTER PROJECT
  11.  
  12.  
  13.  
  14.  
  15. ###STARTER
  16. #we display the instructions
  17. print("Welcome to the MasterMind game")
  18. print("Your goal is to guess the 4 games that have been drawn by the computer as quickly as possible.")
  19. print("The order of the games is relevant when guessing.")
  20. print("Please note the games may be duplicated!!!")
  21. print("Here is the set of games used by the computer")
  22. print(games)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement