# XD Road Chart Format

## Explanation of each keys

* rt0: bead road
* rt1: Big/Small Big Road
* rt2: Odd/Even Big Road
* rt3: Number Big Road
* grt：great road tags

## Data format of each keys

Each checker represents a cell within the grid, identified by its Row and Col using 0-based indexing. This means the first cell is located at Row: 0, Col: 0.

* rt0 uses 'checkers' as an example. For instance, the string `0,0,2,0,4` consists of 5 segments:
  * 0 => Row (int, required)
  * 0 => Col (int, required)
  * 2 => Winner (int, required)
    * 1 = Small (Blue)
    * 2 = Big (Red)
    * 3 = Tie (Green)
  * 0 => Unused
  * 4 => Points
* rt1 Big/Small Big Road, string data contains 5 parts, for example `0,0,2,256,4`
  * 0 => Row (int, required)
  * 0 => Col (int, required)
  * 2 => Winner (int, required)
    * 1 = Small (Blue)
    * 2 = Big (Red)
  * 256 => Bitmask Combination Data:

    * CntSkws => Unused

    * CntFties => Unused

    * CntTies => Number of Ties, 256 = 1, 512 = 2, 768 = 3, 1024 = 4

    * CntBps => Unused

    * CntPps => Unused

    > 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 => Points
* rt2 Odd/Even Big Road, string data contains 5 parts, for example `0,0,2,0,4`
  * 0 => Row (int, required)
  * 0 => Col (int, required)
  * 2 => Winner (int, required)
    * 1 = Odd (Blue)
    * 2 = Even (Red)
  * 0 => Unused
  * 4 => Points
* rt3 Number Big Road, string data contains 5 parts, for example `0,4,4,0,2`
  * 0 => Row (int, required)
  * 0 => Col (int, required)
  * 2 => Winner (int, required)
    * 1 = Odd (Blue)
    * 2 = Even (Red)
    * 4 = Tie (Green)
  * 0 => Unused
  * 4 => Points

## Xoc Dia Big Road Patterns

* "XDLONGODD" => Odd Long Streak: 4 consecutive Odds appear on the Big Road.
* "XDLONGEVEN" => Even Long Streak: 4 consecutive Evens appear on the Big Road.
* "XDLONGBIG" => Big Long Streak: 4 consecutive Bigs appear on the Big Road.
* "XDLONGSMALL" => Small Long Streak: 4 consecutive Smalls appear on the Big Road.
* "XDLONGODDCNT\_%d" => Odd Long Streak Count
* "XDLONGEVENCNT\_%d" => Even Long Streak Count.
* "XDLONGBIGCNT\_%d" => Big Long Streak Count.
* "XDLONGSMALLCNT\_%d" => Small Long Streak Count.
* "XDODDEVENJUMP" => Odd/Even Chop (Jump) on Big Road: The last 4 beads alternate as Odd-Even-Odd-Even or Even-Odd-Even-Odd.
* "XDBIGSMALLJUMP" => Big/Small Chop (Jump) on Big Road: The last 4 beads alternate as Big-Small-Big-Small or Small-Big-Small-Big.

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/en/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.
