Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Mar 18, 2021
1 parent 8c843ea commit b62aaff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/51_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ const node_prototype = {
},

move_old_format: function() {
let move = this.move;
if (move === "e1h1" && this.parent.board.state[4][7] === "K") move = "e1g1";
if (move === "e1a1" && this.parent.board.state[4][7] === "K") move = "e1c1";
if (move === "e8h8" && this.parent.board.state[4][0] === "k") move = "e8g8";
if (move === "e8a8" && this.parent.board.state[4][0] === "k") move = "e8c8";
let move = move;
if (move === "e1h1" && this.parent.board.state[4][7] === "K") return "e1g1";
if (move === "e1a1" && this.parent.board.state[4][7] === "K") return "e1c1";
if (move === "e8h8" && this.parent.board.state[4][0] === "k") return "e8g8";
if (move === "e8a8" && this.parent.board.state[4][0] === "k") return "e8c8";
return move;
},

Expand Down
2 changes: 1 addition & 1 deletion src/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 src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Nibbler",
"version": "1.7.8",
"version": "1.7.9",
"author": "Fohristiwhirl",
"description": "Leela Chess Zero (Lc0) interface",
"license": "GPL-3.0",
Expand Down

0 comments on commit b62aaff

Please sign in to comment.