QBFScoresServer is running at /core/nodejs/QBFScoresServer/

+
-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module.exports = function(routeapp) {
    app.get(route, function(req, res) {
        res.end("QBFScoresServer is running!");
    });
}
process.env.PWD
inspect = require('util').inspect
inspect(process.env.PWD);
fs = require('fs')
fs.writeFileSync(process.env.PWD + '/highscore.json', JSON.stringify({dan: 12}))
fileString = fs.readFileSync(process.env.PWD + '/highscore.json')
fileObject = JSON.parse(fileString)
inspect(fileObject)
X
SubserverViewer
X
M

x0
x0
x1
x2
x3
x4
x5
x6




0
0




letter score
word score
game score
top word
best game
best word
multiplier


pause
restart
quick
how to play
clear (esc)
delete (del)
enter (retn)
Quick Brown Fox
X
M

1
2
3
4
5
6
7
8
9
// changed at Wed Aug 24 2011 20:24:55 GMT-0700 (PDT) by Dan  
this.addScript(function postFinalScore() {
    if (this.bestWordScore > this.level.bestWordScore) {
        this.level.bestWord = this.bestWord;
        this.level.bestWordScore = this.bestWordScore;
    }   
    if (this.totalScore > this.level.bestGameScore) this.level.bestGameScor
e = this.totalScore;
    this.postLevelStats();
}).tag(["scoring"]);
X
Scripts
Connections
+
+
-
-
<lively.morphic.Morph#9E5BB... - QuickBrownFox1>
Tag:
all
run
save
Tests

ObjectEditor
X
M