Skip to content

Commit

Permalink
jhlywa#319: add null move functionality: code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ppeloton committed Mar 22, 2024
1 parent 6ee8c59 commit e5df490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const FLAGS: Record<string, string> = {
PROMOTION: 'p',
KSIDE_CASTLE: 'k',
QSIDE_CASTLE: 'q',
NULL_MOVE: 'nm',
NULL_MOVE: '-',
}

// prettier-ignore
Expand Down Expand Up @@ -1982,7 +1982,7 @@ export class Chess {
} else if (move.flags & BITS.QSIDE_CASTLE) {
output = 'O-O-O'
} else if (move.flags & BITS.NULL_MOVE){
output = SAN_NULLMOVE
return SAN_NULLMOVE
} else {
if (move.piece !== PAWN) {
const disambiguator = getDisambiguator(move, moves)
Expand Down

0 comments on commit e5df490

Please sign in to comment.