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.
Files changed (28) hide show
  1. {pingv4-0.1.0 → pingv4-0.1.1}/PKG-INFO +2 -2
  2. {pingv4-0.1.0 → pingv4-0.1.1}/game_test.py +1 -0
  3. {pingv4-0.1.0 → pingv4-0.1.1}/pyproject.toml +2 -2
  4. {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/game.py +3 -0
  5. {pingv4-0.1.0 → pingv4-0.1.1}/.gitignore +0 -0
  6. {pingv4-0.1.0 → pingv4-0.1.1}/.python-version +0 -0
  7. {pingv4-0.1.0 → pingv4-0.1.1}/Cargo.lock +0 -0
  8. {pingv4-0.1.0 → pingv4-0.1.1}/Cargo.toml +0 -0
  9. {pingv4-0.1.0 → pingv4-0.1.1}/LICENSE +0 -0
  10. {pingv4-0.1.0 → pingv4-0.1.1}/README.md +0 -0
  11. {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/board.rs +0 -0
  12. {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/cell.rs +0 -0
  13. {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/error.rs +0 -0
  14. {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/mod.rs +0 -0
  15. {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/state.rs +0 -0
  16. {pingv4-0.1.0 → pingv4-0.1.1}/src/core/game/test.rs +0 -0
  17. {pingv4-0.1.0 → pingv4-0.1.1}/src/core/mod.rs +0 -0
  18. {pingv4-0.1.0 → pingv4-0.1.1}/src/lib.rs +0 -0
  19. {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/__init__.py +0 -0
  20. {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/_core.pyi +0 -0
  21. {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/bot/__init__.py +0 -0
  22. {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/bot/base.py +0 -0
  23. {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/bot/minimax.py +0 -0
  24. {pingv4-0.1.0 → pingv4-0.1.1}/src/pingv4/py.typed +0 -0
  25. {pingv4-0.1.0 → pingv4-0.1.1}/src/wrapper/game_wrapper.rs +0 -0
  26. {pingv4-0.1.0 → pingv4-0.1.1}/src/wrapper/mod.rs +0 -0
  27. {pingv4-0.1.0 → pingv4-0.1.1}/test.py +0 -0
  28. {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.0
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
@@ -2,3 +2,4 @@ from pingv4 import RandomBot, MinimaxBot, GameConfig, Connect4Game
2
2
 
3
3
  game = Connect4Game(MinimaxBot, MinimaxBot, GameConfig(bot_delay_seconds=0.5))
4
4
  game.run()
5
+ print(game.winner)
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "pingv4"
3
- version = "0.1.0"
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