projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix variants with captures forced: castling isn't a capture!
[vchess.git]
/
client
/
src
/
data
/
problemCheck.js
diff --git
a/client/src/data/problemCheck.js
b/client/src/data/problemCheck.js
index
b9fe04d
..
d6b916c
100644
(file)
--- a/
client/src/data/problemCheck.js
+++ b/
client/src/data/problemCheck.js
@@
-4,9
+4,9
@@
export function checkProblem(p) {
if (!V.IsGoodFen(p.fen)) return "Errors in FEN";
if (!V.IsGoodFen(p.fen)) return "Errors in FEN";
- if (p.instruction.trim().length == 0) return "
Empty
instructions";
+ if (p.instruction.trim().length == 0) return "
Missing
instructions";
- if (p.solution.trim().length == 0) return "
Empty
solution";
+ if (p.solution.trim().length == 0) return "
Missing
solution";
return "";
}
return "";
}