ai-snake-lab 0.4.3__tar.gz → 0.4.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/PKG-INFO +1 -1
  2. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/ai/EpsilonAlgo.py +1 -2
  3. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/ai/ReplayMemory.py +4 -4
  4. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DDb4EPlot.py +1 -1
  5. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DDef.py +1 -1
  6. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DDir.py +1 -1
  7. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DEpsilon.py +1 -1
  8. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DFields.py +1 -1
  9. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DFile.py +1 -1
  10. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DLayout.py +1 -1
  11. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DModelL.py +1 -1
  12. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DModelLRNN.py +1 -1
  13. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DReplayMemory.py +1 -1
  14. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DSim.py +1 -1
  15. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/game/GameBoard.py +1 -1
  16. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/game/SnakeGame.py +2 -2
  17. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/pyproject.toml +1 -1
  18. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/LICENSE +0 -0
  19. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/README.md +0 -0
  20. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/AISim.py +0 -0
  21. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/ai/AIAgent.py +0 -0
  22. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/ai/AITrainer.py +0 -0
  23. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/ai/models/ModelL.py +0 -0
  24. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/ai/models/ModelRNN.py +0 -0
  25. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/DLabels.py +0 -0
  26. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/constants/__init__.py +0 -0
  27. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/game/GameElements.py +0 -0
  28. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/ui/Db4EPlot.py +0 -0
  29. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/utils/AISim.tcss +0 -0
  30. {ai_snake_lab-0.4.3 → ai_snake_lab-0.4.5}/ai_snake_lab/utils/ConstGroup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ai-snake-lab
3
- Version: 0.4.3
3
+ Version: 0.4.5
4
4
  Summary: Interactive reinforcement learning sandbox for experimenting with AI agents in a classic Snake Game environment.
5
5
  License: GPL-3.0
6
6
  License-File: LICENSE
@@ -16,9 +16,8 @@ can also be passed in when invoking the main asg.py front end.
16
16
 
17
17
  import random
18
18
  from random import randint
19
- import os, sys
20
19
 
21
- from constants.DEpsilon import DEpsilon
20
+ from ai_snake_lab.constants.DEpsilon import DEpsilon
22
21
 
23
22
 
24
23
  class EpsilonAlgo:
@@ -12,12 +12,12 @@ This file contains the ReplayMemory class.
12
12
 
13
13
  import os
14
14
  from collections import deque
15
- import random, sys
15
+ import random
16
16
  import sqlite3, pickle
17
17
 
18
- from constants.DReplayMemory import MEM_TYPE
19
- from constants.DFile import DFile
20
- from constants.DDir import DDir
18
+ from ai_snake_lab.constants.DReplayMemory import MEM_TYPE
19
+ from ai_snake_lab.constants.DFile import DFile
20
+ from ai_snake_lab.constants.DDir import DDir
21
21
 
22
22
 
23
23
  class ReplayMemory:
@@ -8,7 +8,7 @@ constants/DDb4EPlot.py
8
8
  License: GPL 3.0
9
9
  """
10
10
 
11
- from utils.ConstGroup import ConstGroup
11
+ from ai_snake_lab.utils.ConstGroup import ConstGroup
12
12
 
13
13
 
14
14
  class Plot(ConstGroup):
@@ -8,7 +8,7 @@ constants/DDef.py
8
8
  License: GPL 3.0
9
9
  """
10
10
 
11
- from utils.ConstGroup import ConstGroup
11
+ from ai_snake_lab.utils.ConstGroup import ConstGroup
12
12
 
13
13
 
14
14
  class DDef(ConstGroup):
@@ -8,7 +8,7 @@ constants/DDir.py
8
8
  License: GPL 3.0
9
9
  """
10
10
 
11
- from utils.ConstGroup import ConstGroup
11
+ from ai_snake_lab.utils.ConstGroup import ConstGroup
12
12
 
13
13
 
14
14
  class DDir(ConstGroup):
@@ -8,7 +8,7 @@ constants/DEpsilon.py
8
8
  License: GPL 3.0
9
9
  """
10
10
 
11
- from utils.ConstGroup import ConstGroup
11
+ from ai_snake_lab.utils.ConstGroup import ConstGroup
12
12
 
13
13
 
14
14
  class DEpsilon(ConstGroup):
@@ -8,7 +8,7 @@ constants/DFields.py
8
8
  License: GPL 3.0
9
9
  """
10
10
 
11
- from utils.ConstGroup import ConstGroup
11
+ from ai_snake_lab.utils.ConstGroup import ConstGroup
12
12
 
13
13
 
14
14
  class DField(ConstGroup):
@@ -8,7 +8,7 @@ constants/DFile.py
8
8
  License: GPL 3.0
9
9
  """
10
10
 
11
- from utils.ConstGroup import ConstGroup
11
+ from ai_snake_lab.utils.ConstGroup import ConstGroup
12
12
 
13
13
 
14
14
  class DFile(ConstGroup):
@@ -8,7 +8,7 @@ constants/DLayout.py
8
8
  License: GPL 3.0
9
9
  """
10
10
 
11
- from utils.ConstGroup import ConstGroup
11
+ from ai_snake_lab.utils.ConstGroup import ConstGroup
12
12
 
13
13
 
14
14
  class DLayout(ConstGroup):
@@ -8,7 +8,7 @@ constants/DModelL.py
8
8
  License: GPL 3.0
9
9
  """
10
10
 
11
- from utils.ConstGroup import ConstGroup
11
+ from ai_snake_lab.utils.ConstGroup import ConstGroup
12
12
 
13
13
 
14
14
  class DModelL(ConstGroup):
@@ -8,7 +8,7 @@ constants/DModelRNN.py
8
8
  License: GPL 3.0
9
9
  """
10
10
 
11
- from utils.ConstGroup import ConstGroup
11
+ from ai_snake_lab.utils.ConstGroup import ConstGroup
12
12
 
13
13
 
14
14
  class DModelRNN(ConstGroup):
@@ -8,7 +8,7 @@ constants/DReplayMemory.py
8
8
  License: GPL 3.0
9
9
  """
10
10
 
11
- from utils.ConstGroup import ConstGroup
11
+ from ai_snake_lab.utils.ConstGroup import ConstGroup
12
12
 
13
13
 
14
14
  class MEM_TYPE(ConstGroup):
@@ -8,7 +8,7 @@ constants/DGameBoard.py
8
8
  License: GPL 3.0
9
9
  """
10
10
 
11
- from utils.ConstGroup import ConstGroup
11
+ from ai_snake_lab.utils.ConstGroup import ConstGroup
12
12
 
13
13
 
14
14
  class DSim(ConstGroup):
@@ -18,7 +18,7 @@ from textual.reactive import var
18
18
  from rich.segment import Segment
19
19
  from rich.style import Style
20
20
 
21
- from game.GameElements import Direction
21
+ from ai_snake_lab.game.GameElements import Direction
22
22
 
23
23
  emptyA = "#111111"
24
24
  emptyB = "#000000"
@@ -14,8 +14,8 @@ import numpy as np
14
14
 
15
15
  from textual.geometry import Offset
16
16
 
17
- from game.GameBoard import GameBoard
18
- from game.GameElements import Direction
17
+ from ai_snake_lab.game.GameBoard import GameBoard
18
+ from ai_snake_lab.game.GameElements import Direction
19
19
 
20
20
  # Maximum number of moves. This is multiplied by the length of the snake. The game
21
21
  # ends if game moves > MAX_MOVES * length-of-snake. This avoids enless AI looping behavior.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ai-snake-lab"
3
- version = "0.4.3"
3
+ version = "0.4.5"
4
4
  description = "Interactive reinforcement learning sandbox for experimenting with AI agents in a classic Snake Game environment."
5
5
  authors = [{ name = "Nadim-Daniel Ghaznavi", email = "nghaznavi@gmail.com" }]
6
6
  license = { text = "GPL-3.0" }
File without changes
File without changes