6808d7a1 |
1 | export function checkProblem(p) { |
89021f18 |
2 | const vid = parseInt(p.vid); |
6808d7a1 |
3 | if (isNaN(vid) || vid <= 0) return "Please select a variant"; |
89021f18 |
4 | |
866842c3 |
5 | if (!V.IsGoodFen(p.fen)) return "Errors in FEN"; |
6808d7a1 BA |
6 | |
7 | return ""; |
89021f18 |
8 | } |