Ok, it’s ready and working.
I’m gonna have jojoh peer-review it with me tomorrow before I release it in the open, hard to change afterwards, so better get it right the first time. Then tomorrow night I’ll put up the option in the game edit/submit where you can enable this feature, and I’ll also publish the jar.
The method is:
public static String[][] p(Applet caller, String name, int score)
returned is a two dimensional array, list of results, where each row is: 0 = playername, 1 = score
or it returns null on any exception.
The invocation would go something like:
String[][] results = HScore.p(this, "appel", 999);
if(results != null) { ... show results.. } else { ...oops!... }
The reason for applet reference is to retrieve an applet property.
Mocking this will be mostly up to you.