Commits

Arne Babenhauserheide  committed e668acf

tutorial_de startet unter py3

  • Participants
  • Parent commits 9c4efc8
  • Branches py3

Comments (0)

Files changed (3)

File rpg_lib/textrpg_1d6/char.py

             # Upgrade a random value
             >>> char.upgrade(3, object=('random', 0))
             # Upgrade a specific skill (cooking)
-            >>> char.upgrade(3, object=("skill", "cooking"))'
+            >>> char.upgrade(3, object=("skill", "cooking"))
             # Upgrade a specific attribute
             >>> char.upgrade(3, object=("attribute", "sensitivity"))
             # Upgrade weighted with a list of things to upgrade.

File simple_story.py

-#!/usr/bin/env python
-# encoding: utf-8
-
+#!/usr/bin/env python3
 
 from rpg_lib.avatarsay import *
 

File tutorial_de.py

-#!/usr/bin/env python
-# encoding: utf-8
+#!/usr/bin/env python3
 
 """TextRPG Tutorial - Ein Leitfaden zur Nutzung des TextRPG.
 
 
 # First make sure the user has at least Python 2.5
 from sys import version_info
-if version_info < (2,5): 
-    print("TextRPG braucht mindestens Python Version 2.5.")
+if version_info < (3,0): 
+    print("TextRPG für python3 braucht mindestens Python Version 3.0.")
     print("Sie finden aktuelle Version von Python auf ")
     print("- http://python.org ")
     exit()
-elif version_info >= (3,0): 
-    print("TextRPG wurde noch nicht auf Python Version 3 oder höher aktualisiert.")
-    print("Bitte geben Sie uns die nötige Zeit, oder helfen Sie uns.")
-    print("- http://rpg-1d6.sf.net")
-    exit()
 
 from rpg_lib.textrpg import story, ask