summaryrefslogtreecommitdiff
path: root/bots
diff options
context:
space:
mode:
Diffstat (limited to 'bots')
-rw-r--r--bots/__init__.py4
-rw-r--r--bots/bad.py5
-rw-r--r--bots/bot.py2
-rw-r--r--bots/idiot.py5
4 files changed, 11 insertions, 5 deletions
diff --git a/bots/__init__.py b/bots/__init__.py
new file mode 100644
index 0000000..f180c3a
--- /dev/null
+++ b/bots/__init__.py
@@ -0,0 +1,4 @@
+""" bots - tämä alimoduli tarjoaa tekoälyn """
+
+from .bot import Bot
+from .bad import BadBot
diff --git a/bots/bad.py b/bots/bad.py
index 1419fc0..fb853f1 100644
--- a/bots/bad.py
+++ b/bots/bad.py
@@ -1,6 +1,7 @@
""" bots/bad.py - botti joka ehkä osaa merkata jonkun asian """
-from bots.bot import Bot
-from tui.static import Action
+from tui import Action
+from .bot import Bot
+
class BadBot(Bot):
""" IdiotBot - merkistsee kaikki turvallisiksi avata """
# pylint: disable = too-few-public-methods
diff --git a/bots/bot.py b/bots/bot.py
index 8466c51..a097a8d 100644
--- a/bots/bot.py
+++ b/bots/bot.py
@@ -1,5 +1,5 @@
""" bots/bot.py - bottien kantaisä """
-from tui.static import Action
+from tui import Action
class Bot():
""" Bot - perusluokka perittäväksi """
diff --git a/bots/idiot.py b/bots/idiot.py
index 200d690..933eee9 100644
--- a/bots/idiot.py
+++ b/bots/idiot.py
@@ -1,6 +1,7 @@
""" bots/idiot.py - se ensimmäinen botti joka tekee kaiken väärin """
-from bots.bot import Bot
-from tui.static import Action
+from tui import Action
+from .bot import Bot
+
class IdiotBot(Bot):
""" IdiotBot - merkistsee kaikki turvallisiksi avata """
# pylint: disable = too-few-public-methods