Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- game/engine.py +2 -0
- tests/test_game_loop.py +1 -0
game/engine.py
CHANGED
|
@@ -27,6 +27,7 @@ def discover_mushroom(collection=None, catalog=None):
|
|
| 27 |
return mushroom, current, history
|
| 28 |
|
| 29 |
|
|
|
|
| 30 |
def companion_reply(message=None, history=None, current=None):
|
| 31 |
def myco_reply(message=None, history=None, current=None):
|
| 32 |
from __future__ import annotations
|
|
@@ -98,6 +99,7 @@ def myco_reply(
|
|
| 98 |
return "", [*next_history, _assistant_message(answer)]
|
| 99 |
|
| 100 |
|
|
|
|
| 101 |
myco_reply = companion_reply
|
| 102 |
|
| 103 |
|
|
|
|
| 27 |
return mushroom, current, history
|
| 28 |
|
| 29 |
|
| 30 |
+
def myco_reply(message=None, history=None, current=None):
|
| 31 |
def companion_reply(message=None, history=None, current=None):
|
| 32 |
def myco_reply(message=None, history=None, current=None):
|
| 33 |
from __future__ import annotations
|
|
|
|
| 99 |
return "", [*next_history, _assistant_message(answer)]
|
| 100 |
|
| 101 |
|
| 102 |
+
companion_reply = myco_reply
|
| 103 |
myco_reply = companion_reply
|
| 104 |
|
| 105 |
|
tests/test_game_loop.py
CHANGED
|
@@ -92,6 +92,7 @@ class MycoGameLoopTests(unittest.TestCase):
|
|
| 92 |
|
| 93 |
card = mushroom_card(mushroom)
|
| 94 |
progress = progress_markdown([])
|
|
|
|
| 95 |
def test_renderers_show_unknown_traits_and_empty_dex(self) -> None:
|
| 96 |
mushroom = Mushroom("Glowcap", "Common", "mossy logs", "I think this one glows at night, but I'm not completely sure.")
|
| 97 |
|
|
|
|
| 92 |
|
| 93 |
card = mushroom_card(mushroom)
|
| 94 |
progress = progress_markdown([])
|
| 95 |
+
|
| 96 |
def test_renderers_show_unknown_traits_and_empty_dex(self) -> None:
|
| 97 |
mushroom = Mushroom("Glowcap", "Common", "mossy logs", "I think this one glows at night, but I'm not completely sure.")
|
| 98 |
|