format and fix
This commit is contained in:
parent
9c76d0f159
commit
a6f36ca6f9
6 changed files with 11 additions and 6 deletions
|
|
@ -3,7 +3,7 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
import sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
from .cli import marvin_sw_text_adventure.game import game
|
||||
if __name__ == "__main__":
|
||||
from marvin_sw_text_adventure.game import game
|
||||
|
||||
sys.exit(game())
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import typer
|
||||
|
||||
from marvin_sw_text_adventure.cli.common import verbose_callback
|
||||
from marvin_sw_text_adventure.console import console
|
||||
from marvin_sw_text_adventure.cli.game import game_app
|
||||
|
||||
# from marvin_sw_text_adventure.cli.config import config_app
|
||||
# from marvin_sw_text_adventure.cli.tui import tui_app
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
from rich.console import Console
|
||||
import typer
|
||||
|
||||
from marvin_sw_text_adventure.cli.common import verbose_callback
|
||||
|
|
@ -27,5 +26,6 @@ def run(
|
|||
),
|
||||
):
|
||||
from marvin_sw_text_adventure.console import console
|
||||
|
||||
console.log("Starting game")
|
||||
game_run()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
from typing import List, Tuple
|
||||
import atexit
|
||||
from typing import List, Tuple
|
||||
|
||||
from marvin import ai_fn
|
||||
import pydantic
|
||||
|
|
@ -9,6 +9,7 @@ from rich.prompt import Prompt
|
|||
from rich.table import Table
|
||||
|
||||
from marvin_sw_text_adventure.console import console
|
||||
from numpy import character
|
||||
|
||||
|
||||
@ai_fn
|
||||
|
|
@ -201,7 +202,7 @@ def create_character() -> StarWarsCharacter:
|
|||
def game():
|
||||
console.print("generating your character")
|
||||
|
||||
prompt = Prompt()
|
||||
prompt = Prompt(console=console)
|
||||
|
||||
character = create_character()
|
||||
game = create_game(character)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue