jeux.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # Copyright (C) 2017 Constant, Algolit
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details: <http://www.gnu.org/licenses/>.
  12. intro = input("vous ete un chevalier")
  13. enter = "Appuyé sur entrer pour continuez"
  14. continuez = " Souhaitez-vous continuez ? oui / non"
  15. sentence = print(continuez)
  16. reponse = input()
  17. print(intro)
  18. #script oui/non
  19. y = "oui"
  20. n = "non"
  21. if reponse == y :
  22. print("super")
  23. else :
  24. print("dommage")
  25. # create list item
  26. item = "bouclier torche pièces"
  27. words = item.split()
  28. words.sort()
  29. input(words)
  30. input("Prendre un item ?")
  31. if reponse == words :
  32. print("vous avez pris un item")
  33. else:
  34. print("vous avez rien prit")