projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On update + clocks thinking
[vchess.git]
/
client
/
src
/
base_rules.js
diff --git
a/client/src/base_rules.js
b/client/src/base_rules.js
index
eefd04d
..
bcd73b1
100644
(file)
--- a/
client/src/base_rules.js
+++ b/
client/src/base_rules.js
@@
-50,13
+50,13
@@
export const ChessRules = class ChessRules
// Turn "wb" into "B" (for FEN)
static board2fen(b)
{
// Turn "wb" into "B" (for FEN)
static board2fen(b)
{
- return
b[0]=='w' ? b[1].toUpperCase() : b[1]
;
+ return
(b[0]=='w' ? b[1].toUpperCase() : b[1])
;
}
// Turn "p" into "bp" (for board)
static fen2board(f)
{
}
// Turn "p" into "bp" (for board)
static fen2board(f)
{
- return
f.charCodeAt()<=90 ? "w"+f.toLowerCase() : "b"+f
;
+ return
(f.charCodeAt()<=90 ? "w"+f.toLowerCase() : "b"+f)
;
}
// Check if FEN describe a position
}
// Check if FEN describe a position