Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 6 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
Showing with 12 additions and 12 deletions.
  1. +3 −3 README.md
  2. +5 −5 package.json
  3. +3 −3 server.js
  4. +1 −1 views/index.ejs
View
6 README.md
@@ -1,11 +1,11 @@
-# Wordament webapp
+# Wordfs webapp
-Nothing. Just the plain old wordament as a webapp.
+A wordfs webapp - Find words from a matrix in a dfs fashion.
# NOTE: Important for developers
+ Part of the source code is maintained as a seperate branch "pack-for-npm".
-+ The reason for doing this is "Packaging the source cpp modules" as a library. So one can just include "require('wordament')".
++ The reason for doing this is "Packaging the source cpp modules" as a library. So one can just include "require('wordfs')".
# Installation
View
10 package.json
@@ -1,6 +1,6 @@
{
"version": "0.0.1-4",
- "description": "Github Game off 2012 - Wordament",
+ "description": "Wordfs - Find words from a matrix",
"main": "server.js",
"dependencies": {
"express": "3.x",
@@ -12,14 +12,14 @@
"passport-facebook": "x",
"express-params": "x",
"validator": "x",
- "wordament": "x"
+ "wordfs": "x"
},
"engines": {
"node": "0.8.x"
},
"scripts": {
"start": "server.js"
},
- "name": "Github-Game-off-2012-wordament",
- "subdomain": "wordament"
-}
+ "name": "wordfs-game",
+ "subdomain": "wordfs"
+}
View
6 server.js
@@ -18,13 +18,13 @@ var express = require('express'),
ejs = require('ejs'),
io = require('socket.io').listen(server),
_validate = require('validator'),
- wordament = require("wordament").Wordament;
+ wordfs = require("wordfs").Wordfs;
app.configure( function () {
app.use(connect.compress());
app.use(express.bodyParser());
app.use(express.cookieParser());
- app.use(express.session({secret: "WORDAMENT :P" }));
+ app.use(express.session({secret: "WORDFS :P" }));
app.use("/static", express.static(__dirname + "/static"));
app.set("view engine", 'ejs');
app.param(function(name, fn){
@@ -50,7 +50,7 @@ var game_status = 0;
io.sockets.on('connection', function(socket) {
console.log("Connected boopathi" + socket);
- var game = new wordament();
+ var game = new wordfs();
socket.emit('question', { question: game.question.split(',').splice(0,4) });
socket.emit('timer', { start : start_time.split(":")});
game_status=1;
View
2 views/index.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>Wordament</title>
+ <title>Wordfs | Game</title>
<link href="/static/style.css" type="text/css" rel="stylesheet" />
</head>
<body>

No commit comments for this range

Something went wrong with that request. Please try again.