From c7b9819701109b4b31550d0b6b187f618f170e41 Mon Sep 17 00:00:00 2001 From: kacperski36 Date: Thu, 7 May 2020 18:20:08 +0200 Subject: [PATCH] zadania rycerze --- Rycerze/clases/__init__.py | 0 Rycerze/clases/clas.py | 12 ++++++++++++ Rycerze/user_savegame.txt | 2 ++ 3 files changed, 14 insertions(+) create mode 100644 Rycerze/clases/__init__.py create mode 100644 Rycerze/clases/clas.py create mode 100644 Rycerze/user_savegame.txt diff --git a/Rycerze/clases/__init__.py b/Rycerze/clases/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/Rycerze/clases/clas.py b/Rycerze/clases/clas.py new file mode 100644 index 0000000..73741a1 --- /dev/null +++ b/Rycerze/clases/clas.py @@ -0,0 +1,12 @@ +class Postac: + def __init__(self,name,moves): + self.name=name + self.moves=moves + def nazwij(self): + name=input("Podaj imie swojego rycerza") +class Templariusz(Postac): + Postac.moves=1 +class Asasyn(Postac): + Postac.moves=3 +class Elf(Postac): + Postac.moves=2 \ No newline at end of file diff --git a/Rycerze/user_savegame.txt b/Rycerze/user_savegame.txt new file mode 100644 index 0000000..7ef9f1d --- /dev/null +++ b/Rycerze/user_savegame.txt @@ -0,0 +1,2 @@ +60 +40 \ No newline at end of file