projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix games ordering in MyGames, fix en-passant mistake in Rifle variant
[vchess.git]
/
client
/
src
/
data
/
problemCheck.js
diff --git
a/client/src/data/problemCheck.js
b/client/src/data/problemCheck.js
index
d0978cb
..
d6b916c
100644
(file)
--- a/
client/src/data/problemCheck.js
+++ b/
client/src/data/problemCheck.js
@@
-4,5
+4,9
@@
export function checkProblem(p) {
if (!V.IsGoodFen(p.fen)) return "Errors in FEN";
+ if (p.instruction.trim().length == 0) return "Missing instructions";
+
+ if (p.solution.trim().length == 0) return "Missing solution";
+
return "";
}