projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small fixes
[vchess.git]
/
client
/
src
/
variants
/
Pacosako.js
diff --git
a/client/src/variants/Pacosako.js
b/client/src/variants/Pacosako.js
index
c6f466f
..
ae4fe6f
100644
(file)
--- a/
client/src/variants/Pacosako.js
+++ b/
client/src/variants/Pacosako.js
@@
-34,6
+34,11
@@
export class PacosakoRules extends ChessRules {
};
}
};
}
+ static fen2board(f) {
+ // Underscore is character 95, in file w_
+ return f.charCodeAt() <= 95 ? "w" + f.toLowerCase() : "b" + f;
+ }
+
static IsGoodPosition(position) {
if (position.length == 0) return false;
const rows = position.split("/");
static IsGoodPosition(position) {
if (position.length == 0) return false;
const rows = position.split("/");