AlexMennen comments on Prisoner's Dilemma (with visible source code) Tournament - Less Wrong
You are viewing a comment permalink. View the original post to see all comments and the full post content.
You are viewing a comment permalink. View the original post to see all comments and the full post content.
Comments (232)
If you can tell where in the stack you are (like you could with C), you could tell if you were being run by the main program, or by another contestant. Can you?
I don't know of a way to do that.
One way is to recursively call a bunch of functions and catch the resulting "recursion limit exceeded" exception.