A baseball player prepares to swing the bat at a pitched ball .