"Winging it" is a phrase that implies a person is trying their best in an unknown situation.