Skip to content

Commit 110b863

Browse files
James HeppellJames Heppell
James Heppell
authored and
James Heppell
committed
add comments about 5v3 check diff
1 parent 8c2f5d1 commit 110b863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fen.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function parseRemainingChecks(part: string): Result<RemainingChecks, FenE
117117
const black = parseSmallUint(parts[2]);
118118
if (!defined(white) || white > 5 || !defined(black) || black > 5)
119119
return Result.err(new FenError(InvalidFen.RemainingChecks));
120-
return Result.ok(new RemainingChecks(5 - white, 5 - black)); //TODO how to know about 5check vs 3check variant to set accordingly
120+
return Result.ok(new RemainingChecks(5 - white, 5 - black)); //Old notation counting down, not used in games, therefore using highest check mode 5
121121
} else if (parts.length === 2) {
122122
const white = parseSmallUint(parts[0]);
123123
const black = parseSmallUint(parts[1]);

0 commit comments

Comments
 (0)