Open GoogleCodeExporter opened 9 years ago
如果补丁贴在这里出现乱码的话,请下载附件。 --- Engine.cc~ 2011-10-26 00:22:09.000000000 +0800 +++ Engine.cc 2012-08-14 14:18:02.610353344 +0800 @@ -453,8 +453,11 @@ { /** 没被将军,那就没事,有棋,bug是将/帅被困死 */ m_checked = checked_by(); +#if 0 + /* 既然是个 bug,那就注释掉吧。正确性比效率更重要。*/ if(!m_checked) return false; +#endif /** * 轮到黑方走,则生成黑方所有的着法,并一一检测,如果都不能通过, * 则死棋,如果遇到一个能通过的,则马上返回false吧 @@ -495,7 +498,7 @@ break; case RED_BISHOP: case BLACK_BISHOP: - for(int k=0;i<4;i++){ + for(int k=0;k<4;k++){ dst=src+BishopMoveTab[k]; if(in_board(dst)){ int mv = get_move(src,dst);
Original issue reported on code.google.com by tinyb...@gmail.com on 14 Aug 2012 at 9:35
tinyb...@gmail.com
Attachments:
Original issue reported on code.google.com by
tinyb...@gmail.com
on 14 Aug 2012 at 9:35Attachments: