graph-games-proto 0.3.2292__py3-none-any.whl → 0.3.2295__py3-none-any.whl

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.
graph_games_proto/fns.py CHANGED
@@ -1036,13 +1036,13 @@ class Player(PClass):
1036
1036
  idx = field(type=int)
1037
1037
  pieces = field(type=list) # List[Piece]
1038
1038
  cards = field(type=list) # List[Card]
1039
- discard_tray = field(type=PVector) # PVector[Card]
1039
+ discard_tray = field(type=PVector) # PVector[str]
1040
1040
  def __todict__(self):
1041
1041
  return {
1042
1042
  "idx": self.idx,
1043
1043
  "pieces": self.pieces,
1044
1044
  "cards": self.cards,
1045
- "discard_tray": [x.__todict__() for x in self.discard_tray],
1045
+ "discard_tray": list(self.discard_tray),
1046
1046
  }
1047
1047
  @staticmethod
1048
1048
  def __fromdict__(d):
@@ -1050,7 +1050,7 @@ class Player(PClass):
1050
1050
  idx=d["idx"],
1051
1051
  pieces=d["pieces"],
1052
1052
  cards=d["cards"],
1053
- discard_tray=[Card.__fromdict__(x) for x in d["discard_tray"]]
1053
+ discard_tray=v(d["discard_tray"])
1054
1054
  )
1055
1055
 
1056
1056
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graph_games_proto
3
- Version: 0.3.2292
3
+ Version: 0.3.2295
4
4
  Requires-Dist: multipledispatch==1.0.0
5
5
  Requires-Dist: pyrsistent==0.20.0
6
6
  Requires-Dist: numpy==2.2.4
@@ -1,9 +1,9 @@
1
1
  graph_games_proto/__init__.py,sha256=3XawPcYk9Zk-Hj4M8eNBdGzBccKG8dWj8ZZGRkWnmA4,735
2
2
  graph_games_proto/all_types.py,sha256=IpbwftEcHS5Ewz-saFNk0lO9FvcbuHG36odRTayCXUk,54911
3
- graph_games_proto/fns.py,sha256=6wQFi338YbAi327ZA6d3DeID2cOQmVAsZgEEyD6fzPw,211350
3
+ graph_games_proto/fns.py,sha256=xjr4XTbtkjEWbmM1iZCDva1bxnV65DnVefz2pP2IRkE,211300
4
4
  graph_games_proto/main.py,sha256=fj2U7KcwrpZtuUhjOX5yVxY18LZvvsxDFYZ_S5mxe04,145
5
5
  graph_games_proto/state.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- graph_games_proto-0.3.2292.dist-info/METADATA,sha256=suJq-St0A6vSKvjhX9KqN8qBBwObRL85M2I6zGA8V7w,188
7
- graph_games_proto-0.3.2292.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
- graph_games_proto-0.3.2292.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
- graph_games_proto-0.3.2292.dist-info/RECORD,,
6
+ graph_games_proto-0.3.2295.dist-info/METADATA,sha256=y6KCMe_kGXjuIAH_C5ieEP-7aJanwrIoq9NoVF0PyGE,188
7
+ graph_games_proto-0.3.2295.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
+ graph_games_proto-0.3.2295.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
+ graph_games_proto-0.3.2295.dist-info/RECORD,,