kidpawn.py
def score_board(b:Board) -> float:
    """Returns a score for the board.
    Uses the board's own score function (my_score) if monkey-patched in,
    else uses score_material_and_win by default
    """
    if hasattr(b,'my_score'):
        return b.my_score()
    else:
        return score_material_and_win(b)
Returns a score for the board.
    Uses the board's own score function (my_score) if monkey-patched in,
    else uses score_material_and_win by default
    
Returns a score for the board.
Uses the board's own score function (my_score) if monkey-patched in,
else uses score_material_and_win by default
Returns a score for the board . Uses the board ' s own score function ( my_score ) if monkey - patched in else uses score_material_and_win by default
def score_board(b:Board) -> float:
    if hasattr(b,'my_score'):
        return b.my_score()
    else:
        return score_material_and_win(b)
def score_board ( b : Board ) -> float : if hasattr ( b , 'my_score' ) : return b . my_score ( ) else : return score_material_and_win ( b )
Returns a score for the board.
Returns a score for the board .
"""Returns a score for the board.
    Uses the board's own score function (my_score) if monkey-patched in,
    else uses score_material_and_win by default
    """
b
Board