initial commit of poker game

This commit is contained in:
Edward Yang
2015-03-20 14:21:44 -07:00
commit cd7f17778f
147 changed files with 10833 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
[{
"type": "connector",
"token": "agarxhqb98rpajloaxn34ga8xrunpagkjwlaw3ruxnpaagl29w4rxn"
}, {
"type": "chat",
"token": "agarxhqb98rpajloaxn34ga8xrunpagkjwlaw3ruxnpaagl29w4rxn"
},{
"type": "game",
"token": "agarxhqb98rpajloaxn34ga8xrunpagkjwlaw3ruxnpaagl29w4rxn"
},{
"type": "gate",
"token": "agarxhqb98rpajloaxn34ga8xrunpagkjwlaw3ruxnpaagl29w4rxn"
}]

View File

@@ -0,0 +1,16 @@
[{
"id": "user-1",
"username": "admin",
"password": "admin",
"level": 1
}, {
"id": "user-2",
"username": "monitor",
"password": "monitor",
"level": 2
},{
"id": "user-3",
"username": "test",
"password": "test",
"level": 2
}]

View File

@@ -0,0 +1,63 @@
{
"config" : {
"enabled" : true,
"joinInterval" : {
"min" : 3,
"max" : 3
},
"actionInterval" : {
"min" : 1,
"max" : 3
},
"gamesToPlay" : {
"min" : 1,
"max" : 1
},
"buyIn" : 1000,
"minBots" : 7,
"minPlayers" : 3,
"validateChips" : false
},
"bots" : [
{
"username": "bot1",
"password": "bot1",
"email": "bot1@poker-stack.com"
},
{
"username": "bot2",
"password": "bot2",
"email": "bot2@poker-stack.com"
},
{
"username": "bot3",
"password": "bot3",
"email": "bot3@poker-stack.com"
},
{
"username": "bot4",
"password": "bot4",
"email": "bot4@poker-stack.com"
},
{
"username": "bot5",
"password": "bot5",
"email": "bot5@poker-stack.com"
},
{
"username": "bot6",
"password": "bot6",
"email": "bot6@poker-stack.com"
},
{
"username": "bot7",
"password": "bot7",
"email": "bot7@poker-stack.com"
},
{
"username": "bot8",
"password": "bot8",
"email": "bot8@poker-stack.com"
}
]
}

View File

@@ -0,0 +1,10 @@
{
"gameMode" : {
"normal" : {
"timeout" : 30
},
"fast" : {
"timeout" : 15
}
}
}

View File

@@ -0,0 +1,125 @@
{
"appenders": [
{
"type": "console"
},
{
"type": "file",
"filename": "${opts:base}/logs/con-log-${opts:serverId}.log",
"pattern": "connector",
"maxLogSize": 1048576,
"layout": {
"type": "basic"
},
"backups": 5,
"category": "con-log"
},
{
"type": "file",
"filename": "${opts:base}/logs/rpc-log-${opts:serverId}.log",
"maxLogSize": 1048576,
"layout": {
"type": "basic"
},
"backups": 5,
"category": "rpc-log"
},
{
"type": "file",
"filename": "${opts:base}/logs/forward-log-${opts:serverId}.log",
"maxLogSize": 1048576,
"layout": {
"type": "basic"
},
"backups": 5,
"category": "forward-log"
},
{
"type": "file",
"filename": "${opts:base}/logs/rpc-debug-${opts:serverId}.log",
"maxLogSize": 1048576,
"layout": {
"type": "basic"
},
"backups": 5,
"category": "rpc-debug"
},
{
"type": "file",
"level": "DEBUG",
"filename": "${opts:base}/logs/game-log-${opts:serverId}.log",
"maxLogSize": 1048576,
"layout": {
"type": "basic"
},
"backups": 5,
"category": "game-log"
},
{
"type": "file",
"filename": "${opts:base}/logs/crash.log",
"maxLogSize": 1048576,
"layout": {
"type": "basic"
},
"backups": 5,
"category":"crash-log"
},
{
"type": "file",
"filename": "${opts:base}/logs/admin.log",
"maxLogSize": 1048576,
"layout": {
"type": "basic"
}
,"backups": 5,
"category":"admin-log"
},
{
"type": "file",
"filename": "${opts:base}/logs/pomelo.log",
"maxLogSize": 1048576,
"layout": {
"type": "basic"
}
,"backups": 5,
"category":"pomelo"
},
{
"type": "file",
"filename": "${opts:base}/logs/pomelo-admin.log",
"maxLogSize": 1048576,
"layout": {
"type": "basic"
}
,"backups": 5,
"category":"pomelo-admin"
},
{
"type": "file",
"filename": "${opts:base}/logs/pomelo-rpc.log",
"maxLogSize": 1048576,
"layout": {
"type": "basic"
}
,"backups": 5,
"category":"pomelo-rpc"
}
],
"levels": {
"rpc-log" : "ERROR",
"forward-log": "ERROR",
"con-log" : "ERROR",
"rpc-debug": "ERROR",
"crash-log" : "ERROR",
"admin-log": "ERROR",
"pomelo" : "ERROR",
"pomelo-admin": "ERROR",
"pomelo-rpc": "ERROR"
},
"replaceConsole": true,
"lineDebug": false
}

View File

@@ -0,0 +1,14 @@
{
"development":{
"id":"master-server-1",
"host":"127.0.0.1",
"port":3005
},
"production":{
"id":"master-server-1",
"host":"127.0.0.1",
"port":3005
}
}

View File

@@ -0,0 +1,7 @@
{
"host" : "localhost",
"port" : 6379,
"opts" : {
"auth_pass" : "secretredispass"
}
}

View File

@@ -0,0 +1,30 @@
{
"development":{
"connector":[
{"id":"connector-server-1", "host":"127.0.0.1", "port":4050, "clientPort": 3050, "frontend": true}
],
"game":[
{"id":"game-server-1", "host":"127.0.0.1", "port":6050}
],
"chat": [
{"id":"chat-server-1","host":"127.0.0.1","port":3450}
],
"gate":[
{"id": "gate-server-1", "host": "127.0.0.1", "clientPort": 3014, "frontend": true}
]
},
"production":{
"connector":[
{"id":"connector-server-1", "host":"127.0.0.1", "port":4050, "clientPort": 3050, "frontend": true}
],
"game":[
{"id":"game-server-1", "host":"127.0.0.1", "port":6050}
],
"chat": [
{"id":"chat-server-1","host":"127.0.0.1","port":3450}
],
"gate":[
{"id": "gate-server-1", "host": "127.0.0.1", "clientPort": 3014, "frontend": true}
]
}
}