示例#1
0
文件: board.py 项目: B-Lock/risk
 def __init__(self, msg):
     RiskGameError.__init__(self, msg)
示例#2
0
文件: battle.py 项目: B-Lock/risk
 def __init__(self, origin, target):
     RiskGameError.__init__(self, "%s and %s aren't neighbours!" % \
         (origin.name, target.name))
示例#3
0
文件: input.py 项目: mayankas/risk
 def __init__(self):
     RiskGameError.__init__(self, 'user wants to quit')
示例#4
0
文件: battle.py 项目: B-Lock/risk
 def __init__(self, origin, target):
     RiskGameError.__init__(self, "You own both %s and %s!" % \
         (origin.name, target.name))
示例#5
0
文件: battle.py 项目: B-Lock/risk
 def __init__(self, origin):
     RiskGameError.__init__(self, "%s doesn't have enough armies to " \
         "attack, minimum is 2" % (origin.name))
示例#6
0
 def __init__(self, attempted_player, number_of_players):
     RiskGameError.__init__("attempted to access player: %s but only have" \
         " %s players" % (attempted_player, number_of_players))
示例#7
0
 def __init__(self, origin, target):
     RiskGameError.__init__(self, "%s and %s aren't neighbours!" % \
         (origin.name, target.name))
示例#8
0
 def __init__(self, origin):
     RiskGameError.__init__(self, "%s doesn't have enough armies to " \
         "attack, minimum is 2" % (origin.name))
示例#9
0
 def __init__(self, origin, target):
     RiskGameError.__init__(self, "You own both %s and %s!" % \
         (origin.name, target.name))
示例#10
0
文件: board.py 项目: ranpiper3/risk
 def __init__(self, msg):
     RiskGameError.__init__(self, msg)