Skip to content
Snippets Groups Projects
Commit 55205888 authored by deuce's avatar deuce
Browse files

Add support for the ping command.

parent 2f2a8be2
No related branches found
No related tags found
No related merge requests found
......@@ -40,9 +40,12 @@ f.flush();
f.flush();
}
}
else if((m=cmd.match(/^ping ([0-9])$/))!=null) {
write("pong "+m[1]+"\n");
}
break;
case 'protover 2':
writeln('feature time=0 draw=0 analyze=0 myname="JS Engine" variants="normal" colors=0 name=0 nps=0 done=1\n');
writeln('feature ping=1 time=0 draw=0 analyze=0 myname="JS Engine" variants="normal" colors=0 name=0 nps=0 done=1\n');
break;
case 'new':
b=new Board();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment