> For the complete documentation index, see [llms.txt](https://zhugelianglongming.gitbook.io/shu-du/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zhugelianglongming.gitbook.io/shu-du/ji-qiao/ji-qiao-gui-na/lian/yu/biao-zhun-yu/er-jie-yu.md).

# 二阶鱼

## 原理

因为

* 存在 2 行 2 列`RegionLineParallel[1,2]` 、`RegionLinePerpendicular[1,2]`：
  * `RegionLineParallel[n]` 之间互相平行
  * `RegionLinePerpendicular[n]` 之间互相平行
  * `RegionLinePerpendicular[n]` 垂直于`RegionLinePerpendicular[m]`
  * `RegionLineParallel[n]` 和`RegionLinePerpendicular[m]`相交于单元格`Cell[nm]`
* 对于候选数`X`
  * 在行列`RegionLineParallel[1]` 中
    * 可填入数字`X`的单元格仅`Cell[11]`、`Cell[12]`
  * 在行列`RegionLineParallel[2]` 中
    * 可填入数字`X`的单元格仅`Cell[21]`、`Cell[22]`

所以

* 在行列`RegionLinePerpendicular1` 中
  * 除了`Cell[11]`、`Cell[21]`的其他单元格
    * 必不填入数字`X`
* 在行列`RegionLinePerpendicular2` 中
  * 除了`Cell[12]`、`Cell[22]`的其他单元格
    * 必不填入数字`X`

> 分析 4 格中数字`X`的数量c：`c >= 2 && c <= 2` → `c == 2`

![X-Wing](https://www.sudokuwiki.org/PuzImages/XWing1.png)

### 技巧转换

* \[\[复合色链]]：2 个共轭对的复合色链

## 性质

### 删除域

在\[\[二阶鱼#原理|原理]]的定义下，`二阶鱼的删除域` 指的是:

* 在行列`RegionLinePerpendicular1` 中
  * 除了`Cell[11]`、`Cell[21]`的其他单元格
* 在行列`RegionLinePerpendicular2` 中
  * 除了`Cell[12]`、`Cell[22]`的其他单元格 故，结论可以简化为：
* 二阶鱼的删除域：
  * 必不填入数字`X`

## 练习

* [三思数独](https://www.12634.com/learning/x-wing/index)

> [SudokuWiki.org - X-Wing Strategy](https://www.sudokuwiki.org/X_Wing_Strategy)
