Created
June 20, 2011 20:31
-
-
Save naltatis/1036501 to your computer and use it in GitHub Desktop.
node.js bot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
express = require('express'); | |
var app = express.createServer(); | |
app.get('/guess', function(req, res){ | |
// these are the parameter you get | |
req.param('match_id') // 447 | |
req.param('host_id') // 10 | |
req.param('host_name') // "SV Werder Bremen" | |
req.param('guest_id') // 20 | |
req.param('guest_name') // "Hamburger SV" | |
// insert clever algorithm here | |
// return your guess | |
res.send('2:1'); | |
}); | |
app.listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment