Skip to content

Commit

Permalink
rule: 摆子阶段最后一着如果成三则先吃子再进入走棋阶段
Browse files Browse the repository at this point in the history
  • Loading branch information
calcitem committed Aug 18, 2019
1 parent 02426d0 commit 79effc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions NineChess/src/ninechess.cpp
Expand Up @@ -722,11 +722,6 @@ bool NineChess::place(int pos, long time_p, bool cp)

currentPos = pos;

// 如果决出胜负
if (win()) {
goto out;
}

n = addMills(currentPos);

// 开局阶段未成三
Expand Down Expand Up @@ -772,6 +767,11 @@ bool NineChess::place(int pos, long time_p, bool cp)
goto out;
}

// 如果决出胜负
if (win()) {
goto out;
}

// 对于中局落子 (ontext.stage == GAME_MOVING)

// 如果落子不合法
Expand Down

4 comments on commit 79effc7

@calcitem
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

更改规则后对自对弈结果没有影响。

i7 8559U clang-cl

r2 s050 t00
(2,2) 00:00.000
(2,4) 00:00.228
(2,8) 00:00.214
(2,1) 00:01.103
(3,2) 00:00.566
(1,2) 00:05.101
(2,6) 00:06.263
(1,4) 00:10.211
(2,7) 00:08.655
-(1,4)  00:10.444
(1,1) 00:11.360
(3,8) 00:11.754
(1,8) 00:15.261
-(3,2)  00:19.767
(3,1) 00:14.502
(1,7) 00:21.802
(1,6) 00:15.371
(3,6) 00:22.507
(1,3) 00:16.452
(3,4) 00:25.875
(3,5) 00:21.442
(1,5) 00:28.216
(3,3) 00:24.364
(2,3) 00:29.666
(2,5) 00:27.878
(3,7) 00:29.744
(1,5)->(1,4) 00:30.210
-(2,2)  00:31.049
(1,6)->(1,5) 00:29.022
-(2,3)  00:30.132
(1,2)->(2,2) 00:32.009
(3,3)->(3,2) 00:31.622
-(2,4)  00:33.422
(3,4)->(2,4) 00:34.250
(1,5)->(1,6) 00:35.651
(1,4)->(1,5) 00:36.941
(1,3)->(1,2) 00:36.243
(2,4)->(2,3) 00:37.723
(2,5)->(2,4) 00:36.844
(1,5)->(2,5) 00:38.185
(1,6)->(1,5) 00:37.267
(1,7)->(1,6) 00:38.544
(2,7)->(1,7) 00:37.861
(3,7)->(2,7) 00:38.963
(3,8)->(3,7) 00:38.451
(2,3)->(1,3) 00:39.379
(3,7)->(3,8) 00:39.459
-(2,7)  00:40.263
(1,3)->(1,4) 00:40.066
(1,7)->(2,7) 00:41.528
-(2,5)  00:42.552
(1,8)->(1,7) 00:41.586
(2,6)->(2,5) 00:44.467
-(1,6)  00:46.079
(3,6)->(2,6) 00:43.007
(3,5)->(3,6) 00:47.109
(1,7)->(1,8) 00:44.243
(2,7)->(3,7) 00:49.392
-(1,1)  00:50.630
(2,1)->(1,1) 00:46.820
(3,6)->(3,5) 00:52.391
-(2,6)  00:53.570
(1,1)->(2,1) 00:48.846
(3,5)->(3,6) 00:55.459
-(2,1)  00:56.331
(1,8)->(1,1) 00:50.197
(3,6)->(3,5) 00:57.601
-(1,1)  00:57.772
Player1 win!

@calcitem
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@calcitem
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_debug.txt

关于最后一着成三是否去子,用此文件调试。

@calcitem
Copy link
Owner Author

@calcitem calcitem commented on 79effc7 Aug 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug-last-3.txt

但是用附件这个来调试 ,在对方最后有吃子的情况下,貌似没有这个修改的情况下也是会先吃子再进入走子阶段。

乌龙,因为吃子后走子阶段可以走动 。

Please sign in to comment.