projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Twokings variant
[vchess.git]
/
server
/
models
/
Game.js
diff --git
a/server/models/Game.js
b/server/models/Game.js
index
641c0dc
..
5f332b7
100644
(file)
--- a/
server/models/Game.js
+++ b/
server/models/Game.js
@@
-300,10
+300,7
@@
const GameModel =
// Check all that is possible (required) in obj:
return (
(
// Check all that is possible (required) in obj:
return (
(
- !obj.move || (
- !!(obj.move.played.toString().match(/^[0-9]+$/)) &&
- !!(obj.move.idx.toString().match(/^[0-9]+$/))
- )
+ !obj.move || !!(obj.move.idx.toString().match(/^[0-9]+$/))
) && (
!obj.drawOffer || !!(obj.drawOffer.match(/^[wbtn]$/))
) && (
) && (
!obj.drawOffer || !!(obj.drawOffer.match(/^[wbtn]$/))
) && (