(self)
Prints the board in a fancy (?) way
Prints the board in a fancy (?) way
Prints the board in a fancy ( ? ) way
def show(self):
        """ Prints the board in a fancy (?) way """
        print(
            "\n"
            + "\n".join(
                ["  1 2 3 4 5 6 7 8"]
                + [
                    "ABCDEFGH"[k]
                    + " "
                    + " ".join(
                        [[".", "1", "2", "X"][self.board[k][i]] for i in range(8)]
                    )
                    for k in range(8)
                ]
                + [""]
            )
        )
def show ( self ) : print ( "\n" + "\n" . join ( [ "  1 2 3 4 5 6 7 8" ] + [ "ABCDEFGH" [ k ] + " " + " " . join ( [ [ "." , "1" , "2" , "X" ] [ self . board [ k ] [ i ] ] for i in range ( 8 ) ] ) for k in range ( 8 ) ] + [ "" ] ) )