Commit f259b1ee authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

BlessingOfEarth had no tests

parent 2482451d
......@@ -1277,7 +1277,10 @@ class BlessingOfHeaven(RuleCode):
class BlessingOfEarth(RuleCode):
def appliesToHand(hand):
return hand.ownWind is not East and hand.lastSource == '1'
result = hand.ownWind is not East and hand.lastSource == '1'
if result:
assert hand.lastTile.isExposed, '{}: Blessing of Earth: last tile must be exposed'.format(hand)
return result
def selectable(hand):
"""for scoring game"""
......@@ -731,6 +731,8 @@ class Blessing(Base):
[Win(limits=1), NoWin()])
self.scoreTest('s4s5s6 RS1S1S1B6B6B6B8B8B8 b5b5 fn yn m1 LS1S1S1S1',
self.scoreTest('s4s5s6 RS1S2S3B6B6B7B7B8B8 b5b5 fn yn m1 Ls4s4s5s6',
[Win(limits=1), NoWin()], myWind=West)
class Terminals(Base):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment