Skip to content

Commit

Permalink
Added Canberra game.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Aug 31, 2023
1 parent 96351ef commit fc84e71
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
12 changes: 12 additions & 0 deletions html-src/rules/canberra.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<h1>Canberra</h1>
<p>
Yukon type. 1 deck. 1 redeal.

<h3>Object</h3>
<p>
Move all cards to the foundations.

<h3>Quick Description</h3>
<p>
Like <a href="austalianpatience.html">Australian Patience</a>,
but with a redeal.
2 changes: 1 addition & 1 deletion pysollib/gamedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def _callback(gi, gt=game_type):
('fc-2.20', tuple(range(855, 897))),
('fc-2.21', tuple(range(897, 900)) + tuple(range(11014, 11017)) +
tuple(range(13160, 13163)) + (16682,)),
('dev', tuple(range(906, 914)) + tuple(range(11017, 11020)) +
('dev', tuple(range(906, 915)) + tuple(range(11017, 11020)) +
tuple(range(22303, 22311)) + tuple(range(22353, 22361))),
)

Expand Down
8 changes: 8 additions & 0 deletions pysollib/games/yukon.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ def startGame(self):
# ************************************************************************
# * Australian Patience
# * Tasmanian Patience
# * Canberra
# * Raw Prawn
# * Bim Bom
# ************************************************************************
Expand Down Expand Up @@ -486,6 +487,11 @@ def createGame(self):
AustralianPatience.createGame(self, max_rounds=-1, num_deal=3)


class Canberra(AustralianPatience):
def createGame(self):
AustralianPatience.createGame(self, max_rounds=2)


class RawPrawn(AustralianPatience):
RowStack_Class = Yukon_SS_RowStack

Expand Down Expand Up @@ -821,3 +827,5 @@ def startGame(self):
registerGame(GameInfo(897, Kiev, "Kiev",
GI.GT_SPIDER, 1, 0, GI.SL_BALANCED,
altnames=('Kyiv',)))
registerGame(GameInfo(914, Canberra, "Canberra",
GI.GT_YUKON, 1, 1, GI.SL_BALANCED))

0 comments on commit fc84e71

Please sign in to comment.