# 色碟路圖格式

## Explaination of each keys

* rt0：珠子路
* rt1：大小大路
* rt2：單雙大路
* rt3：數字大路
* grt：大路標籤

## Data format of each keys

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

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

    * CntSkws => 不使用

    * CntFties => 不使用

    * CntTies => 和局數量, 256 = 1, 512 = 2, 768 = 3, 1024 = 4

    * CntBps => 不使用

    * CntPps => 不使用

    > c# example for extract values of int32((CntStk&0xf)<<16 | (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
        int CntSkws = (256 >> 16) & 0xf
    ```
  * 4 => 點數
* rt2 單雙大路，字串資料包含 5 個部分，例如 `0,0,2,0,4`
  * 0 => Row (int, required)
  * 0 => Col (int, required)
  * 2 => 贏家 (int, required)
    * 1 = 單 (藍色)
    * 2 = 雙 (紅色)
  * 0 => 不使用
  * 4 => 點數
* rt3 數字大路，字串資料包含 5 個部分，例如 `0,4,4,0,2`
  * 0 => Row (int, required)
  * 0 => Col (int, required)
  * 2 => 贏家 (int, required)
    * 1 = 單 (藍色)
    * 2 = 雙 (紅色)
    * 4 = 和 (綠色)
  * 0 => 不使用
  * 4 => 點數

## 色碟大路圖模式

* "XDLONGODD" => 單長龍，在大路中連續出現4個單
* "XDLONGEVEN" => 雙長龍，在大路中連續出現4個雙
* "XDLONGBIG"  => 大長龍，在大路中連續出現4個大
* "XDLONGSMALL" => 小長龍，在大路中連續出現4個小
* "XDLONGODDCNT\_%d" => 長龍數量 單
* "XDLONGEVENCNT\_%d" => 長龍數量 雙
* "XDLONGBIGCNT\_%d" => 長龍數量 大
* "XDLONGSMALLCNT\_%d" => 長龍數量 小
* "XDODDEVENJUMP"  => 大路單雙跳, 最近四個路珠為 單雙單雙或雙單雙單
* "XDBIGSMALLJUMP" => 大路大小跳, 最近四個路珠為 大小大小或小大小大

Roadmap Statistics Json Example Data

```json


{
    "grt": "XDLONGBIG;XDLONGBIGCNT_5",
    "rt0":"0,0,2,0,3;1,0,1,0,1;2,0,1,0,1;3,0,1,0,0;4,0,1,0,1;5,0,1,0,1;0,1,2,0,4;1,1,2,0,3;2,1,2,0,3;3,1,3,0,2;4,1,2,0,3;5,1,3,0,2;0,2,3,0,2;1,2,1,0,1;2,2,3,0,2;3,2,2,0,3;4,2,3,0,2;5,2,2,0,3;",
    "rt1":"0,0,2,0,3;0,1,1,0,1;1,1,1,0,1;2,1,1,0,0;3,1,1,0,1;4,1,1,0,1;0,2,2,0,4;1,2,2,0,3;2,2,2,256,3;3,2,2,512,3;0,3,1,256,1;0,4,2,256,3;1,4,2,0,3;0,5,1,768,1;1,5,1,256,1;0,6,2,0,3;1,6,2,0,3;",
    "rt2":"0,0,1,0,3;1,0,1,0,1;2,0,1,0,1;0,1,2,0,0;0,2,1,0,1;1,2,1,0,1;0,3,2,0,4;0,4,1,0,3;1,4,1,0,3;0,5,2,0,2;0,6,1,0,3;0,7,2,0,2;1,7,2,0,2;0,8,1,0,1;0,9,2,0,2;0,10,1,0,3;0,10,1,0,3;0,10,1,0,3;",
    "rt3":"0,0,2,0,3;0,1,1,0,1;1,1,1,0,1;2,1,1,0,0;3,1,1,0,1;4,1,1,0,1;0,2,2,0,4;1,2,2,0,3;2,2,2,0,3;0,3,4,0,2;0,4,2,0,3;0,5,4,0,2;1,5,4,0,2;0,6,1,0,1;0,7,4,0,2;0,8,2,0,3;0,9,4,0,2;0,10,2,0,3;"
}


```


---

# 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-xd.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.
