Fix package structure and entry point

This commit is contained in:
Rbanh committed 2025-02-23 12:41:06 -05:00
1 parent 0571392afe
commit 31e9771ba0
3 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ setup(
},
entry_points={
"console_scripts": [
"snake-game=run_game:main",
"snake-game=src.cli:main",
],
},
)
+3 -1
View File
@@ -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'
]
+2 -3
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.
"""