graph-games-proto 0.3.2225__py3-none-any.whl → 0.3.2227__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 +10 -14
- {graph_games_proto-0.3.2225.dist-info → graph_games_proto-0.3.2227.dist-info}/METADATA +1 -1
- {graph_games_proto-0.3.2225.dist-info → graph_games_proto-0.3.2227.dist-info}/RECORD +5 -5
- {graph_games_proto-0.3.2225.dist-info → graph_games_proto-0.3.2227.dist-info}/WHEEL +0 -0
- {graph_games_proto-0.3.2225.dist-info → graph_games_proto-0.3.2227.dist-info}/top_level.txt +0 -0
graph_games_proto/fns.py
CHANGED
@@ -1164,7 +1164,7 @@ class PrivateState(PClass):
|
|
1164
1164
|
|
1165
1165
|
|
1166
1166
|
class FaceupCardStack(PClass):
|
1167
|
-
cards = field(type=list) # List[
|
1167
|
+
cards = field(type=list) # List[str]
|
1168
1168
|
def __todict__(self):
|
1169
1169
|
return {
|
1170
1170
|
"cards": self.cards,
|
@@ -1177,7 +1177,7 @@ class FaceupCardStack(PClass):
|
|
1177
1177
|
|
1178
1178
|
|
1179
1179
|
class FacedownCardStack(PClass):
|
1180
|
-
cards = field(type=list) # List[
|
1180
|
+
cards = field(type=list) # List[str]
|
1181
1181
|
def __todict__(self):
|
1182
1182
|
return {
|
1183
1183
|
"cards": self.cards,
|
@@ -1628,15 +1628,15 @@ class LegalAction(PClass):
|
|
1628
1628
|
|
1629
1629
|
|
1630
1630
|
class PublicActionDiscard(PClass):
|
1631
|
-
|
1631
|
+
discard_tray_idxs = field(type=list) # List[int]
|
1632
1632
|
def __todict__(self):
|
1633
1633
|
return {
|
1634
|
-
"
|
1634
|
+
"discard_tray_idxs": self.discard_tray_idxs,
|
1635
1635
|
}
|
1636
1636
|
@staticmethod
|
1637
1637
|
def __fromdict__(d):
|
1638
1638
|
return PublicActionDiscard(
|
1639
|
-
|
1639
|
+
discard_tray_idxs=d["discard_tray_idxs"]
|
1640
1640
|
)
|
1641
1641
|
|
1642
1642
|
|
@@ -1644,7 +1644,7 @@ class ActionDiscard(PClass):
|
|
1644
1644
|
discard_tray_idxs = field(type=list) # List[int]
|
1645
1645
|
def get_public(self, state):
|
1646
1646
|
return PublicActionDiscard(
|
1647
|
-
|
1647
|
+
discard_tray_idxs=self.discard_tray_idxs,
|
1648
1648
|
)
|
1649
1649
|
def __todict__(self):
|
1650
1650
|
return {
|
@@ -1658,15 +1658,15 @@ class ActionDiscard(PClass):
|
|
1658
1658
|
|
1659
1659
|
|
1660
1660
|
class PublicActionKeep(PClass):
|
1661
|
-
|
1661
|
+
discard_tray_idxs = field(type=list) # List[int]
|
1662
1662
|
def __todict__(self):
|
1663
1663
|
return {
|
1664
|
-
"
|
1664
|
+
"discard_tray_idxs": self.discard_tray_idxs,
|
1665
1665
|
}
|
1666
1666
|
@staticmethod
|
1667
1667
|
def __fromdict__(d):
|
1668
1668
|
return PublicActionKeep(
|
1669
|
-
|
1669
|
+
discard_tray_idxs=d["discard_tray_idxs"]
|
1670
1670
|
)
|
1671
1671
|
|
1672
1672
|
|
@@ -1674,7 +1674,7 @@ class ActionKeep(PClass):
|
|
1674
1674
|
discard_tray_idxs = field(type=list) # List[int]
|
1675
1675
|
def get_public(self, state):
|
1676
1676
|
return PublicActionKeep(
|
1677
|
-
|
1677
|
+
discard_tray_idxs=self.discard_tray_idxs,
|
1678
1678
|
)
|
1679
1679
|
def __todict__(self):
|
1680
1680
|
return {
|
@@ -5551,10 +5551,6 @@ def getscorecodes(f):
|
|
5551
5551
|
return score_codes
|
5552
5552
|
|
5553
5553
|
|
5554
|
-
# Implementing the following Julia function:
|
5555
|
-
# function getvalidspotnums(s::State)
|
5556
|
-
# filter(n -> !isnothing(s.faceup_spots[n]), 1:length(s.faceup_spots))
|
5557
|
-
# end
|
5558
5554
|
def getvalidspotnums(s):
|
5559
5555
|
return [n for n in range(1, len(s.faceup_spread.spots) + 1) if s.faceup_spread.spots[n-1] is not None]
|
5560
5556
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
graph_games_proto/__init__.py,sha256=BcRdYe0yElSo3vQ5eqhecM1QP-NXaV-mQtcBH6KUnN0,696
|
2
2
|
graph_games_proto/all_types.py,sha256=IpbwftEcHS5Ewz-saFNk0lO9FvcbuHG36odRTayCXUk,54911
|
3
|
-
graph_games_proto/fns.py,sha256=
|
3
|
+
graph_games_proto/fns.py,sha256=sAin1JGFkmd7aJbqCjbATF51RB-su06oetZiCu5z3yk,210890
|
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.
|
7
|
-
graph_games_proto-0.3.
|
8
|
-
graph_games_proto-0.3.
|
9
|
-
graph_games_proto-0.3.
|
6
|
+
graph_games_proto-0.3.2227.dist-info/METADATA,sha256=d7lJ50z2MBW-PSXyFfkmiFtHee71Lra24iZuBOFnE9I,188
|
7
|
+
graph_games_proto-0.3.2227.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
8
|
+
graph_games_proto-0.3.2227.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
|
9
|
+
graph_games_proto-0.3.2227.dist-info/RECORD,,
|
File without changes
|
File without changes
|