...
 
Commits (1)
......@@ -14,10 +14,14 @@ load(root + "diceobj.js");
var game_id = "dicewarz2";
var timer = new Timer();
var client = new JSONClient(serverAddr,serverPort);
var settings = loadSettings("dice.ini");
var ai = loadAI("ai.ini");
var aiTakingTurns = {};
try {
var client = new JSONClient(serverAddr,serverPort);
var settings = loadSettings("dice.ini");
var ai = loadAI("ai.ini");
var aiTakingTurns = {};
} catch(e) {
throw new Error(e);
}
var data = {
games:client.read(game_id,"games",1),
......@@ -329,4 +333,4 @@ close();
} catch(e) {
log(LOG_ERROR,e.toSource());
}
\ No newline at end of file
}