Fix package structure and entry point

This commit is contained in:
Rbanh 2025-02-23 12:41:06 -05:00
parent 0571392afe
commit 31e9771ba0
3 changed files with 6 additions and 5 deletions

View File

@ -33,7 +33,7 @@ setup(
}, },
entry_points={ entry_points={
"console_scripts": [ "console_scripts": [
"snake-game=run_game:main", "snake-game=src.cli:main",
], ],
}, },
) )

View File

@ -13,6 +13,7 @@ from src.game import Game, GameState
from src.snake import Snake, Direction from src.snake import Snake, Direction
from src.food import Food from src.food import Food
from src.menu import Menu, GameMode, MenuItem from src.menu import Menu, GameMode, MenuItem
from src.cli import main as cli_main
__version__ = '0.1.0' __version__ = '0.1.0'
__author__ = 'Rbanh' __author__ = 'Rbanh'
@ -26,5 +27,6 @@ __all__ = [
'Food', 'Food',
'Menu', 'Menu',
'GameMode', 'GameMode',
'MenuItem' 'MenuItem',
'cli_main'
] ]

View File

@ -1,8 +1,7 @@
#!/usr/bin/env python3
""" """
AI Snake Game Runner AI Snake Game CLI
This script provides the entry point for running the AI Snake Game. This module provides the command-line interface for running the AI Snake Game.
It handles command-line arguments for different game modes and configurations. It handles command-line arguments for different game modes and configurations.
""" """