class ChessPiece(object):

    def __init__(self):
        self.column = 0
        self.row = 0
        self.symbol = ''

    # Checks piece can attack the specified position
    def can_attack_position(self, column, row):
        pass

    # return the character representation of this chess piece
    def get_symbol(self):
        return self.symbol

    def set_column(self, column):
        self.column = column

    def get_column(self):
        return self.column

    def set_row(self, row):
        self.row = row

    def get_row(self):
        return self.row


class King(ChessPiece):

    def __init__(self):
        self.symbol = 'K'

        print '>>> Buil king piece'

    def can_attack_position(self, column, row):
        return True


class Queen(ChessPiece):

    def __init__(self):
        self.symbol = 'Q'

        print '>>> Buil Queen piece'

    def can_attack_position(self, column, row):
        return True


@@ -1,12 +1,37 @@
+from math import hypot%0A%0A%0A
 class ChessP
@@ -82,22 +82,17 @@
    self.
-column
+x
  = 0%0A   
@@ -101,19 +101,17 @@
    self.
-row
+y
  = 0%0A   
@@ -198,60 +198,88 @@
 def 
-can_attack_position(self, column, row):%0A        pass
+deplace_piece(self, square):%0A        self.x = square.x%0A        self.y = square.y
 %0A%0A  
@@ -439,22 +439,17 @@
    self.
-column
+x
  = colum
@@ -497,22 +497,17 @@
 rn self.
-column
+x
 %0A%0A    de
@@ -541,19 +541,17 @@
    self.
-row
+y
  = row%0A%0A
@@ -593,19 +593,120 @@
 rn self.
-row
+y%0A%0A    def pos(self):%0A        return(self.x, self.y)%0A%0A    def check_attack(self, p):%0A        return None
 %0A%0A%0Aclass
@@ -741,32 +741,66 @@
 __init__(self):%0A
+        ChessPiece.__init__(self)%0A
         self.sym
@@ -860,65 +860,168 @@
 ef c
-an
+heck
 _attack
-_position(self, column, row):%0A        return Tru
+(self, pos):%0A        dist = hypot(self.x - pos.x, self.y - pos.y)%0A        if dist %3C= 1:%0A            return True%0A        else:%0A            return Fals
 e%0A%0A%0A
@@ -1062,32 +1062,66 @@
 __init__(self):%0A
+        ChessPiece.__init__(self)%0A
         self.sym
@@ -1182,44 +1182,29 @@
 ef c
-an
+heck
 _attack
-_position(self, column, row
+(self, pos
 ):%0A 
@@ -1222,9 +1222,8 @@
 rn True%0A
-%0A

Add attack function to KING class