Major code restructuring: Reorganized project structure, added AI components - Added new module structure (ai, config, core, ui) - Moved snake and food logic into core module - Added training configuration - Updated gitignore for project-specific files - Modified tests to match new structure
This commit is contained in:
1 parent
251822ec35
commit
b8eeaa4739
34 files changed
+3928
-513
No files matched your search
+2
-2
@@ -8,12 +8,12 @@ This package contains all test modules including:
|
||||
"""
|
||||
|
||||
# Import test utilities and fixtures
|
||||
from tests.conftest import game_config, mock_screen
|
||||
from conftest import game_config, mock_screen
|
||||
|
||||
__version__ = '0.1.0'
|
||||
|
||||
# Define test utilities available for import
|
||||
__all__ = [
|
||||
'game_config',
|
||||
'mock_screen'
|
||||
'mock_screen',
|
||||
]
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
from src.food import Food
|
||||
from src.core import Food
|
||||
|
||||
def test_food_initialization():
|
||||
"""Test food initialization"""
|
||||
|
||||
+1
-2
@@ -1,5 +1,4 @@
|
||||
import pytest
|
||||
from src.snake import Snake, Direction
|
||||
from src.core import Snake, Direction
|
||||
|
||||
def test_snake_initialization():
|
||||
"""Test snake initialization with default values"""
|
||||
|
||||
Reference in new issue
Block a user