本文整理匯總了Python中rule.Rule.gameOver方法的典型用法代碼示例。如果您正苦於以下問題:Python Rule.gameOver方法的具體用法?Python Rule.gameOver怎麽用?Python Rule.gameOver使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類rule.Rule
的用法示例。
在下文中一共展示了Rule.gameOver方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Brd
# 需要導入模塊: from rule import Rule [as 別名]
# 或者: from rule.Rule import gameOver [as 別名]
#test = Brd(0x220,0x8400)
#test = Brd(0x20A, 0x440)
#test = Brd(0x620,0x4004)
#test = Brd(0x8200, 0x4800)
#test = Brd(0x2A0, 0x108)
#test = Brd(0x8220, 0xA)
test.paintbrd()
'''
result = max(test, depth = 5)
moveb(brd = test, *result[0]);
test.paintbrd()
'''
while True:
if Rule.gameOver(test):
break
else:
result = itDeep(test, depth = 7, type = "max")
moveb(brd = test, *result);
print('-'*50)
test.paintbrd()
if Rule.gameOver(test):
break
result = itDeep(test, depth = 7, type = "min")
movew(brd = test, *result);
print('-'*50)
test.paintbrd()