Skip to content

Commit 11c69c6

Browse files
committed
Now that Gearbox supports SAN move formatting, longmove checking is redundant.
1 parent 7f26265 commit 11c69c6

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/portable.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -274,22 +274,6 @@ int MakeGearboxUnitTest(const char *inPgnFileName, const char *outFileName)
274274
}
275275
fprintf(outfile, "%d %s\n", ply, notation);
276276

277-
// Print all legal moves in longmove format.
278-
for (int i=0; i < legal.num; ++i)
279-
{
280-
if (!FormatLongMove(board.WhiteToMove(), legal.m[i], notation))
281-
{
282-
fprintf(stderr, "ERROR: cannot format legal move %d\n", i);
283-
rc = 1;
284-
goto failure_exit;
285-
}
286-
287-
if (i > 0)
288-
fprintf(outfile, " ");
289-
fprintf(outfile, "%s", notation);
290-
}
291-
fprintf(outfile, "\n");
292-
293277
// Print all legal moves in SAN/PGN format.
294278
char san[MAX_MOVE_STRLEN + 1];
295279
for (int i=0; i < legal.num; ++i)

0 commit comments

Comments
 (0)