Skip to content

Commit

Permalink
Version 0.2.4 (#9)
Browse files Browse the repository at this point in the history
* Fixed logging bug.
  • Loading branch information
adityatendulkar authored Jun 3, 2021
1 parent 8e080b6 commit e15d47c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fenfurnace",
"version": "0.2.3",
"version": "0.2.4",
"description": "A chess engine designed to work entirely from a FEN position.",
"keywords": [
"chess",
Expand Down
2 changes: 1 addition & 1 deletion src/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export function makeMove(startCell, endCell, { isTest } = {}) {
if (events.castled === true) {
logText += endCell.charCodeAt(0) - startCell.charCodeAt(0) > 0 ? 'O-O' : 'O-O-O';
} else {
if (piece.toLowerCase() === 'p' && events.pieceCaptured) logText += startCell[1].toLowerCase();
if (piece.toLowerCase() === 'p' && events.pieceCaptured) logText += startCell[0].toLowerCase();
else if (piece.toLowerCase() !== 'p') logText += piece.toUpperCase();
if (events.pieceCaptured) logText += 'x';
logText += endCell;
Expand Down

0 comments on commit e15d47c

Please sign in to comment.