Fix package structure and entry point
This commit is contained in:
parent
0571392afe
commit
31e9771ba0
2
setup.py
2
setup.py
@ -33,7 +33,7 @@ setup(
|
||||
},
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"snake-game=run_game:main",
|
||||
"snake-game=src.cli:main",
|
||||
],
|
||||
},
|
||||
)
|
@ -13,6 +13,7 @@ from src.game import Game, GameState
|
||||
from src.snake import Snake, Direction
|
||||
from src.food import Food
|
||||
from src.menu import Menu, GameMode, MenuItem
|
||||
from src.cli import main as cli_main
|
||||
|
||||
__version__ = '0.1.0'
|
||||
__author__ = 'Rbanh'
|
||||
@ -26,5 +27,6 @@ __all__ = [
|
||||
'Food',
|
||||
'Menu',
|
||||
'GameMode',
|
||||
'MenuItem'
|
||||
'MenuItem',
|
||||
'cli_main'
|
||||
]
|
@ -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.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user