projects
/
vchess.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Draft of problems section
[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
}