Choos Your Own Adventure (Code-golfed)
http://codegolf.stackexchange.com/questions/3474/choose-your-own-adventure
by briguy37
JavaScript
a=prompt().split('\\n');b=0;while(!(d=c(b++,1)));function c(e,f,i,g){if(e>0)for(i=0;h=a[i++];){g=h.split(' ');if(g[0]==f){if(g[1]==100)return h;if(j=c(e-1,g[1]))return g[0]+' '+j}}}alert(d)
//Test input string
var test = "1 10\n10 5\n10 13\n5 12\n5 19\n13 15\n12 20\n15 100";