2023年2月1日 星期三

如何 使用 JSON 定義 poker Gmae 之企劃構想

#原始發想 將一個 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]]
}

沒有留言:

張貼留言

ROS/ROS2 機器人開發、模擬與實作簡介

  主題總覽 #文件主要涵蓋了以下主題: ROS/ROS2 機器人開發框架 : 介紹了 ROS/ROS2 的概念、架構、工具以及它們在機器人開發中的應用。 Gazebo 模擬器 : 介紹了 Gazebo 模擬器的使用,包括環境設定、模型建立、插件應用以及如何與 ROS/ROS2 ...