Every Nintendo Switch appears to contain a hidden copy of NES Golf
arstechnica.com
arstechnica.com
I suppose scoring would be somewhat subjective; an interactive text-based golf game would be very short, but not very "golf".
I did find one example: https://codegolf.stackexchange.com/questions/74767/code-golf...
I'd imagine that if they have the source that it would be 6502 assembly anyway.