tests/lib/ludorum.js
/** The `next(moves)` of a serialized game advances the actual game if with the given
			move all active players in the real game state have moved. Else the next player that has
			to move becomes active.
			*/
The `next(moves)` of a serialized game advances the actual game if with the given
move all active players in the real game state have moved. Else the next player that has
to move becomes active.
The ` next ( moves ) ` of a serialized game advances the actual game if with the given move all active players in the real game state have moved . Else the next player that has to move becomes active .
function next(moves) {
				var nextFixedMoves = copy({}, this.fixedMoves || {}, moves),
					allMoved = iterable(this.players).all(function (p) {
							return nextFixedMoves.hasOwnProperty(p);
						}),
					result;
				if (allMoved) {
					result = super_next.call(this, nextFixedMoves);
					result.fixedMoves = {};
				} else {
					result = this.clone();
					result.fixedMoves = nextFixedMoves;
				}
				return result;
			}
function next ( moves ) { var nextFixedMoves = copy ( { } , this . fixedMoves || { } , moves ) , allMoved = iterable ( this . players ) . all ( function ( p ) { return nextFixedMoves . hasOwnProperty ( p ) ; } ) , result ; if ( allMoved ) { result = super_next . call ( this , nextFixedMoves ) ; result . fixedMoves = { } ; } else { result = this . clone ( ) ; result . fixedMoves = nextFixedMoves ; } return result ; }
The `next(moves)` of a serialized game advances the actual game if with the given
move all active players in the real game state have moved.
The ` next ( moves ) ` of a serialized game advances the actual game if with the given move all active players in the real game state have moved .