#原始發想 將一個 poker Game 相關所有 參數規範 以 JSON 定義 使狀態物件化
#針對這些物件化 Poker Game JSON 開發驅動程式 或 操作引擎
#打造 可以 相容 這些 資料物件 及 執行程式 之平台 server
EXT::
PKGAMEJSON = {
"pkgametype":"A001", << 暫定 排7
"table": {
"cardbuffer":[[],[],[],[]],
"waittime":20,
"activeplay":"u1"
"playloop":["u1","u2","u3","u4"],
"cardsetobj":cardobj
},
"user":{
"u1": {
"type":"man",
"credit":1000,
"handcard":[0x01,0x10,0x1a,0x2b],
"hcardshowflag":[0,1,2,1]
"offcard":[0x18]
},
"u2": {
"type":"AI",
"credit":1000,
"handcard":[0x01,0x10,0x1a,0x2b],
"hcardshowflag":[0,1,2,1]
"offcard":[0x18]
},
"u3": {
"type":"AI",
"credit":1000,
"handcard":[0x01,0x10,0x1a,0x2b],
"hcardshowflag":[0,1,2,1]
"offcard":[0x18]
},
"u4": {
"type":"AI",
"credit":1000,
"handcard":[0x01,0x10,0x1a,0x2b],
"hcardshowflag":[0,1,2,1]
"offcard":[0x18]
}
},
"playlog":[[time,u1count,u2count,u3count,u4count,win,loos]]
}
沒有留言:
張貼留言