Skip to content

Instantly share code, notes, and snippets.

@lastlegion
Created July 4, 2013 08:23
Show Gist options
  • Save lastlegion/5925897 to your computer and use it in GitHub Desktop.
Save lastlegion/5925897 to your computer and use it in GitHub Desktop.
Setting up game module
function init(err, data){
reset();
io = require('socket.io').listen(app);
if(err){
console.log("Error reading dictionary: "+err);
}
//Conver dictionary to a list
word_list = data.toString().split("\n");
//Listen for events
setEventHandlers();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment