-
Notifications
You must be signed in to change notification settings - Fork 0
/
channels.js
59 lines (44 loc) · 1.18 KB
/
channels.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* # Channels definition file for Ultimatum Game
* Copyright(c) 2014 Stefano Balietti
* MIT Licensed
*
* Defines two channels, one to test the requirements,
* and one to actually play an Ultimatum game.
*
* http://www.nodegame.org
* ---
*/
module.exports = [
// Game channel.
{
name: 'trustgame',
admin: 'trustgame/admin',
player: 'trustgame',
verbosity: 100,
// If TRUE, players can invoke GET commands on admins.
getFromAdmins: true,
// Unauthorized clients will be redirected here.
// (defaults: "/pages/accessdenied.htm")
accessDeniedUrl: '/trustgame/unauth.htm',
// Channel Waiting Room configuration.
waitingRoom: {
// Relative path from server/ directory.
logicPath: 'game.room.js',
name: 'waitRoom'
}
}
,
// Requirements channel.
{
name: 'requirements',
admin: 'requirements/admin',
player: 'requirements',
verbosity: 100,
getFromAdmins: true,
waitingRoom: {
logicPath: 'requirements.room.js',
name: 'requirementsWR'
}
}
];