projects
/
vchess.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3b9ccb4677acbb53dbfb8ad094666f68c45457e9
[vchess.git]
/
client
/
src
/
data
/
problemCheck.js
1
export function
checkProblem
(
p
)
2
{
3
const
vid
=
parseInt
(
p
.
vid
);
4
if
(
isNaN
(
vid
) ||
vid
<=
0
)
5
return
"Please select a variant"
;
6
7
if
(!
V
.
IsGoodFen
(
p
.
fen
))
8
return
"Bad FEN string"
;
9
}