Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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)
Beispiel #6
0
 def __init__(self, point, white):
     white = None
     Chess.__init__(self, point, ".", white)