kidpawn.py
def move(self, move:str) -> [bool, str]:
        """Returns true if the move succeeded
        """
        try:
            self.b.push_uci(move)
            return True, f"you moved: {move}"
        except ValueError as e:
            msg = str(e)
            if msg.startswith("illegal uci"):
                return False, f"illegal move: {move}.  Try something like d2d4 or h7h8q."
            else:
                return False, f"other error {msg}"
        except Exception as e:
            traceback.print_exc()
            return False, f"unknown error {e}"
Returns true if the move succeeded
        
Returns true if the move succeeded
Returns true if the move succeeded
def move(self, move:str) -> [bool, str]:
        try:
            self.b.push_uci(move)
            return True, f"you moved: {move}"
        except ValueError as e:
            msg = str(e)
            if msg.startswith("illegal uci"):
                return False, f"illegal move: {move}.  Try something like d2d4 or h7h8q."
            else:
                return False, f"other error {msg}"
        except Exception as e:
            traceback.print_exc()
            return False, f"unknown error {e}"
def move ( self , move : str ) -> [ bool , str ] : try : self . b . push_uci ( move ) return True , f"you moved: {move}" except ValueError as e : msg = str ( e ) if msg . startswith ( "illegal uci" ) : return False , f"illegal move: {move}.  Try something like d2d4 or h7h8q." else : return False , f"other error {msg}" except Exception as e : traceback . print_exc ( ) return False , f"unknown error {e}"
Returns true if the move succeeded
Returns true if the move succeeded
"""Returns true if the move succeeded
        """
self
move
str