Example #1
0
    def __init__(self, point, white):
        if (white == 1):
            Chess.__init__(self, point, "T", white)

        elif (white == 0):
            Chess.__init__(self, point, "t", white)

        self.value = 30
Example #2
0
    def __init__(self, point, white):
        if (white == 1):
            Chess.__init__(self, point, "X", white)

        elif (white == 0):
            Chess.__init__(self, point, "x", white)
        self.primitiveMove = []
        for i in range(9):
            for j in range(10):
                self.primitiveMove.append(Point(i, j))
        self.value = 600
Example #3
0
    def __init__(self, point, white):
        if (white == 1):
            Chess.__init__(self, point, "E", white)
            self.primitiveMove = []
            for i in range(0, 9, 1):
                for j in range(0, 5, 1):
                    self.primitiveMove.append(Point(i, j))

        elif (white == 0):
            Chess.__init__(self, point, "e", white)
            self.primitiveMove = []
            for i in range(0, 9, 1):
                for j in range(5, 10, 1):
                    self.primitiveMove.append(Point(i, j))

        self.value = 120
Example #4
0
    def __init__(self, point, white):
        if (white == 1):
            Chess.__init__(self, point, "K", white)
            self.primitiveMove = []
            for i in range(3, 6, 1):
                for j in range(0, 3, 1):
                    self.primitiveMove.append(Point(i, j))

        elif (white == 0):
            Chess.__init__(self, point, "k", white)
            self.primitiveMove = []
            for i in range(3, 6, 1):
                for j in range(7, 10, 1):
                    self.primitiveMove.append(Point(i, j))

        self.value = 10000
Example #5
0
 def __init__(self, point, white):
     if (white == 1):
         Chess.__init__(self, point, "K", white)
     elif (white == 0):
         Chess.__init__(self, point, "k", white)
Example #6
0
 def __init__(self, point, white):
     white = None
     Chess.__init__(self, point, ".", white)