示例#1
0
def checkIfTwo(arr):
    if (isSubList(openTwoPatter1, arr) or isSubList(openTwoPatter2, arr) or isSubList(openTwoPatter3, arr) or isSubList(openTwoPatter4, arr)):
        return (True)
    return (False)
示例#2
0
def checkIfGappedThree(arr):
    if (isSubList(gappedThreePattern1, arr) or isSubList(gappedThreePattern2, arr) or isSubList(gappedThreePattern3, arr) or isSubList(gappedThreePattern4, arr)):
        return (True)
    return (False)
示例#3
0
def checkIfOpenThree(arr):
    if (isSubList(openThreePattern1, arr) or isSubList(openThreePattern2, arr) or isSubList(openThreePattern3, arr) or isSubList(openThreePattern4, arr) or isSubList(openThreePattern5, arr)):
        return (True)
    return (False)
示例#4
0
def checkIfGappedFour(arr):
    if (isSubList(gappedFourPattern1, arr) or isSubList(gappedFourPattern2, arr) or isSubList(gappedFourPattern3, arr)):
        return (True)
    return (False)
示例#5
0
def checkIfOpenFour(arr):
    if (isSubList(openFourPattern1, arr) or isSubList(openFourPattern2, arr) or isSubList(openFourPattern3, arr)):
        return (True)
    return (False)
示例#6
0
def checkIfWin(arr):
    if (isSubList(winningPattern, arr)):
        return (True)
    return (False)