I would be grateful for your advice on this.
So need to implement a function to find out whether a chess piece is at a specific coordinate on a chessboard:
The piece is defined by the class Piece and a subclass Bishop, Rook, etc.
Co-ordinates & side by a tuple (col, row, side) and the side represented by a bool (True for white, False for Black)
so assigned an instance variable:
wb1 = Bishop (1,1,True)
If I try to print wb1, returns the memory object
<__main__.Bishop object at 0x7fdd440094f0>
Is there anyway, I can get it to print wb1 - the self variable, rather the memory object.
Many thanks
 
    