8ee101f3aa36b3d06cd1a7984b473ab5c836f993
1 export function checkProblem(p
) {
2 const vid
= parseInt(p
.vid
, 10);
3 if (isNaN(vid
) || vid
<= 0) return "Please select a variant";
5 if (!V
.IsGoodFen(p
.fen
)) return "Errors in FEN";
7 if (p
.instruction
.trim().length
== 0) return "Missing instructions";
9 if (p
.solution
.trim().length
== 0) return "Missing solution";