pingv4 0.1.0__tar.gz → 0.1.1__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.
- {pingv4-0.1.0 → pingv4-0.1.1}/PKG-INFO +2 -2
- {pingv4-0.1.0 → pingv4-0.1.1}/game_test.py +1 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/pyproject.toml +2 -2
- {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/game.py +3 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/.gitignore +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/.python-version +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/Cargo.lock +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/Cargo.toml +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/LICENSE +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/README.md +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/board.rs +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/cell.rs +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/error.rs +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/mod.rs +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/state.rs +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/test.rs +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/core/mod.rs +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/lib.rs +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/__init__.py +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/_core.pyi +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/bot/__init__.py +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/bot/base.py +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/bot/minimax.py +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/py.typed +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/wrapper/game_wrapper.rs +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/src/wrapper/mod.rs +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/test.py +0 -0
- {pingv4-0.1.0 → pingv4-0.1.1}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pingv4
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Classifier: Intended Audience :: Developers
|
|
5
5
|
Classifier: Intended Audience :: Education
|
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -17,7 +17,7 @@ Requires-Dist: pydantic>=2.12.5
|
|
|
17
17
|
Requires-Dist: pygame>=2.6.1
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Summary: A high-performance Connect Four library with a graphical game interface and bot framework.
|
|
20
|
-
Author-email: lalitm1004 <lalitm1004@gmail.com>
|
|
20
|
+
Author-email: lalitm1004 <lalitm1004@gmail.com>, Rohit J G <jgrohit.exe@gmail.com>, Daksh Jain <jaindaksh006@gmail.com>
|
|
21
21
|
License: MIT
|
|
22
22
|
Requires-Python: >=3.9
|
|
23
23
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pingv4"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.1"
|
|
4
4
|
description = "A high-performance Connect Four library with a graphical game interface and bot framework."
|
|
5
5
|
license = { text = "MIT" }
|
|
6
6
|
readme = "README.md"
|
|
7
|
-
authors = [{ name = "lalitm1004", email = "lalitm1004@gmail.com" }]
|
|
7
|
+
authors = [{ name = "lalitm1004", email = "lalitm1004@gmail.com" }, { name="Rohit J G", email="jgrohit.exe@gmail.com" }, { name = "Daksh Jain", email = "jaindaksh006@gmail.com" }]
|
|
8
8
|
requires-python = ">=3.9"
|
|
9
9
|
dependencies = ["pydantic>=2.12.5", "pygame>=2.6.1"]
|
|
10
10
|
classifiers = [
|
|
@@ -230,12 +230,15 @@ class Connect4Game:
|
|
|
230
230
|
winner = self.board.winner
|
|
231
231
|
if winner == CellState.Red:
|
|
232
232
|
self.winner_name = f"{self.red_player.strategy_name} (Red)"
|
|
233
|
+
self.winner = 1 if self.player1_is_red else 2
|
|
233
234
|
else:
|
|
234
235
|
self.winner_name = (
|
|
235
236
|
f"{self.yellow_player.strategy_name} (Yellow)"
|
|
236
237
|
)
|
|
238
|
+
self.winner = 2 if self.player1_is_red else 1
|
|
237
239
|
else:
|
|
238
240
|
self.winner_name = "Draw"
|
|
241
|
+
self.winner = 0
|
|
239
242
|
|
|
240
243
|
self.animating = False
|
|
241
244
|
self.animation_col = None
|
|
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
|