summaryrefslogtreecommitdiff
path: root/bots
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-25 15:52:28 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-25 15:52:28 +0200
commit27057a601c43ab5a6dcaa5b396c6b3d891c921b9 (patch)
tree576348f7c7f25b6a6c7283be29a23aa08e6d1688 /bots
parent84ff4aa8fc7714b5841097e0dd800085982321e4 (diff)
Sorting out import situation and making enum names for tiles for readability.
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