This condition is shown in line 35, where if the column is being sorted for a consecutive time and the previous direction was upward, it must be switched to downward sorting.
You will win the game if consecutive five same color pieces appears in a row, a column or a 45 degree angle .
如果某行、某列或斜角45度连续出现5个相同颜色的棋子,即- 为胜利。
3
Two consecutive letters are in the same row or column, so that you can start from A, move horizontally or vertically and finish with the last letter of the sequence.