generalized print-player func