# 炸金花路圖格式

## Explaination of each keys

* rt0：珠子路
* rt1：大路

## Data format of each keys

每個檢查器（checker）代表網格（grid）內的一個儲存格（cell），由其 Row（行）與 Col（欄）以 0 索引表示，這意味著第一個儲存格為 Row: 0, Col: 0。

* rt0、rt1 使用檢查器作為範例，例如 0,1,1,256,0，字串資料包含 5 個部分
  * 0 => Row (int, required)
  * 1 => Col (int, required)
  * 1 => 贏家 (int, required)
    * 1 = 莊家 (紅色)
    * 2 = 閒家（藍色）
    * 3 = 和局（綠色）
  * 256 => 以下位元組合資料：

    * CntFties => 首次和局的狀態。（僅用於 rt1，0: 無，>0: 首次和局數量，最大值: 15）

    * CntTies => 和局的狀態。（僅用於 rt1，0: 無，>0: 和局數量，最大值: 15）

    * CntBps => 莊家對子的狀態（0: 無，>0: 對子數量，最大值: 15）

    * CntPps => 閒家對子的狀態（0: 無，>0: 對子數量，最大值: 15）

    > c# example for extract values of (CntFties&0xf)<<12 | (CntTies&0xf)<<8 | (CntBps&0xf)<<4 | (CntPps & 0xf))

    ```
        int CntPps = 256 & 0xf
        int CntBps = (256 >> 4) & 0xf
        int CntTies = (256 >> 8) & 0xf
        int CntFties = (256 >> 12) & 0xf
    ```
  * 0 => always 0

```json

{
    "rt1":"0,0,2,0,0;1,0,2,0,0;2,0,2,0,0;3,0,2,0,0;4,0,2,0,0;5,0,2,0,0;5,1,2,0,0;5,2,2,0,0;5,3,2,0,0;5,4,2,0,0;5,5,2,0,0;5,6,2,0,0;5,7,2,0,0;5,8,2,0,0;5,9,2,0,0;5,10,2,0,0;5,11,2,0,0;5,12,2,0,0;0,1,1,0,0;1,1,1,0,0;2,1,1,0,0;3,1,1,0,0;4,1,1,0,0;4,2,1,0,0;4,3,1,0,0;4,4,1,0,0;4,5,1,0,0;4,6,1,0,0;4,7,1,0,0;4,8,1,0,0;4,9,1,0,0;4,10,1,0,0;4,11,1,0,0;4,12,1,0,0;0,2,2,0,0;1,2,2,0,0;2,2,2,0,0;3,2,2,0,0;3,3,2,0,0;3,4,2,0,0;3,5,2,0,0;3,6,2,0,0;3,7,2,0,0;3,8,2,0,0;3,9,2,0,0;3,10,2,0,0;3,11,2,0,0;3,12,2,0,0;0,3,1,0,0;1,3,1,0,0;2,3,1,0,0;2,4,1,0,0;2,5,1,0,0;2,6,1,0,0;2,7,1,0,0;2,8,1,0,0;2,9,1,0,0;2,10,1,0,0;2,11,1,0,0;2,12,1,0,0;0,4,2,0,0;1,4,2,0,0;1,5,2,0,0;1,6,2,0,0;1,7,2,0,0;1,8,2,0,0;1,9,2,0,0;1,10,2,0,0;1,11,2,0,0;1,12,2,0,0;0,5,1,0,0;0,6,1,0,0;0,7,1,0,0;0,8,1,0,0;0,9,1,0,0;0,10,1,0,0;0,11,1,0,0;0,12,1,0,0;0,13,1,0,0;0,14,1,0,0;0,15,1,0,0;0,16,1,0,0;0,17,1,0,0;0,18,2,0,0;1,18,2,0,0;2,18,2,0,0;3,18,2,0,0;4,18,2,0,0;5,18,2,0,0;5,19,2,0,0;5,20,2,0,0;5,21,2,0,0"
}

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pkg333.app/enum/enum-roadmap-zjh.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
