chesssnake 0.3.2__tar.gz → 0.3.4__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.
- {chesssnake-0.3.2 → chesssnake-0.3.4}/PKG-INFO +6 -2
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/postgres/Game.py +6 -14
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/postgres/GameError.py +2 -2
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake.egg-info/PKG-INFO +6 -2
- {chesssnake-0.3.2 → chesssnake-0.3.4}/setup.py +8 -4
- {chesssnake-0.3.2 → chesssnake-0.3.4}/LICENSE +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/README.md +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/__init__.py +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/chesslib/Chess.py +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/chesslib/ChessError.py +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/chesslib/ChessImg.py +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/chesslib/Game.py +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/chesslib/__init__.py +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/Roboto-Black.ttf +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/0.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/1.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/B0.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/B1.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/K0.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/K1.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/N0.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/N1.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/P0.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/P1.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/Q0.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/Q1.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/R0.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/R1.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/a.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/b.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/blankboard.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/c.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/d.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/e.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/f.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/g.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/h.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/num1.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/num2.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/num3.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/num4.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/num5.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/num6.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/num7.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/num8.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/orange.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/img/template.png +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/data/init.sql +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/postgres/Sql_Utils.py +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake/postgres/__init__.py +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake.egg-info/SOURCES.txt +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake.egg-info/dependency_links.txt +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake.egg-info/requires.txt +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/chesssnake.egg-info/top_level.txt +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/pyproject.toml +0 -0
- {chesssnake-0.3.2 → chesssnake-0.3.4}/setup.cfg +0 -0
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: chesssnake
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: A Python library for playing, visualizing, and storing chess games.
|
|
5
5
|
Home-page: https://github.com/GabeBecker2048/chesssnake
|
|
6
6
|
Author: Gabe Becker
|
|
7
7
|
Author-email: gabebecker2048@gmail.com
|
|
8
8
|
License: MIT
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
10
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
15
|
Classifier: Operating System :: OS Independent
|
|
12
16
|
Requires-Python: >=3.9
|
|
@@ -22,21 +22,13 @@ class Game(BaseGame):
|
|
|
22
22
|
# if sql=False, we create a new game in memory only
|
|
23
23
|
if sql or auto_sql:
|
|
24
24
|
boardarray, turn, draw, two_move_p = self.sql_game_init(white_id, black_id, group_id, white_name, black_name)
|
|
25
|
+
self.board = Chess.Board(
|
|
26
|
+
board=boardarray,
|
|
27
|
+
two_moveP=two_move_p
|
|
28
|
+
)
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
two_move_p = None
|
|
29
|
-
turn = 0
|
|
30
|
-
draw = 0
|
|
31
|
-
|
|
32
|
-
# TODO: Find a way to make Chess.Board() be called only once
|
|
33
|
-
# Currently, Chess.Board() is called in super().__init__ and here
|
|
34
|
-
self.board = Chess.Board(
|
|
35
|
-
board=boardarray,
|
|
36
|
-
two_moveP=two_move_p
|
|
37
|
-
)
|
|
38
|
-
self.turn = turn
|
|
39
|
-
self.draw = draw
|
|
30
|
+
self.turn = turn
|
|
31
|
+
self.draw = draw
|
|
40
32
|
|
|
41
33
|
# makes a given move, assuming it is the correct player's turn
|
|
42
34
|
# if img=True, return a PIL.Image object. Otherwise, return None
|
|
@@ -13,10 +13,10 @@ class SQLIdError(GameError):
|
|
|
13
13
|
|
|
14
14
|
class SQLAuthError(GameError):
|
|
15
15
|
def __init__(self):
|
|
16
|
-
msg = ("The SQL database
|
|
16
|
+
msg = ("The SQL database credentials are invalid. Make sure these environment variables are set:\n"
|
|
17
17
|
" CHESSDB_NAME CHESSDB_USER CHESSDB_PASS\n"
|
|
18
18
|
"It is also recommended to have these variables set too:\n"
|
|
19
|
-
"
|
|
19
|
+
" CHESSDB_HOST CHESSDB_PORT")
|
|
20
20
|
super().__init__(msg)
|
|
21
21
|
|
|
22
22
|
class ChallengeError(GameError):
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: chesssnake
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: A Python library for playing, visualizing, and storing chess games.
|
|
5
5
|
Home-page: https://github.com/GabeBecker2048/chesssnake
|
|
6
6
|
Author: Gabe Becker
|
|
7
7
|
Author-email: gabebecker2048@gmail.com
|
|
8
8
|
License: MIT
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
10
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
15
|
Classifier: Operating System :: OS Independent
|
|
12
16
|
Requires-Python: >=3.9
|
|
@@ -3,10 +3,10 @@ from setuptools import setup, find_packages
|
|
|
3
3
|
with open('requirements.txt') as f:
|
|
4
4
|
requirements = f.read().splitlines()
|
|
5
5
|
|
|
6
|
-
with open('requirements-postgres.txt') as f:
|
|
6
|
+
with open('extra_requirements/requirements-postgres.txt') as f:
|
|
7
7
|
requirements_postgres = f.read().splitlines()
|
|
8
8
|
|
|
9
|
-
with open('requirements-postgres-binary.txt') as f:
|
|
9
|
+
with open('extra_requirements/requirements-postgres-binary.txt') as f:
|
|
10
10
|
requirements_postgres_binary = f.read().splitlines()
|
|
11
11
|
|
|
12
12
|
with open('README.md') as f:
|
|
@@ -14,7 +14,7 @@ with open('README.md') as f:
|
|
|
14
14
|
|
|
15
15
|
setup(
|
|
16
16
|
name="chesssnake",
|
|
17
|
-
version="0.3.
|
|
17
|
+
version="0.3.4",
|
|
18
18
|
url="https://github.com/GabeBecker2048/chesssnake",
|
|
19
19
|
description="A Python library for playing, visualizing, and storing chess games.",
|
|
20
20
|
author="Gabe Becker",
|
|
@@ -34,7 +34,11 @@ setup(
|
|
|
34
34
|
},
|
|
35
35
|
python_requires='>=3.9',
|
|
36
36
|
classifiers=[
|
|
37
|
-
"Programming Language :: Python :: 3",
|
|
37
|
+
"Programming Language :: Python :: 3.9",
|
|
38
|
+
"Programming Language :: Python :: 3.10",
|
|
39
|
+
"Programming Language :: Python :: 3.11",
|
|
40
|
+
"Programming Language :: Python :: 3.12",
|
|
41
|
+
"Programming Language :: Python :: 3.13",
|
|
38
42
|
"License :: OSI Approved :: MIT License",
|
|
39
43
|
"Operating System :: OS Independent",
|
|
40
44
|
],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|