if ( prevExp instanceof GdlAtom == false || prevExp.equals( GameManager.getParser().TOK_NIL ) == false )
throw new IllegalArgumentException("PLAY request doesn't have LIST and doesn't have NIL atom as prev-moves!");
prevMoves = null; // empty prev moves
}
final Experiment exp = ExperimentManager.getExp(gameId_);
if(exp == null)
{
logger_.severe("No running experiment found for play request ID: " + gameId_);
finish();
return;
}
logger_.info(gameId_ + ": applying moves " + prevMovesStr);
if(prevMoves != null)
{
exp.getGC().setMoves(prevMoves);
}
new Thread()
{
public void run()
{
try
{
synchronized(exp)
{
exp.getGC().setRequestHandler(PlayRequestHandler.this);
if(prevMoves == null)
{
exp.start();
}
else
{
exp.step();
}
}
}
catch(Exception e)
{