build/ludorum.js
/** The method `possibleHaps` is analogous to `Game.possibleMoves`. It calculates all possible
	combinations of haps.
	*/
The method `possibleHaps` is analogous to `Game.possibleMoves`. It calculates all possible
combinations of haps.
The method ` possibleHaps ` is analogous to ` Game . possibleMoves ` . It calculates all possible combinations of haps .
function possibleHaps() {
		return Iterable.product.apply(Iterable,
			iterable(this.haps).mapApply(function (n, hap) {
				return hap.distribution().mapApply(function (v, p) {
					return [n, v, p];
				});
			}).toArray()
		).map(function (haps) {
			var prob = 1;
			return [iterable(haps).mapApply(function (n, v, p) {
				prob *= p;
				return [n, v];
			}).toObject(), prob];
		}).toArray();
	}
function possibleHaps ( ) { return Iterable . product . apply ( Iterable , iterable ( this . haps ) . mapApply ( function ( n , hap ) { return hap . distribution ( ) . mapApply ( function ( v , p ) { return [ n , v , p ] ; } ) ; } ) . toArray ( ) ) . map ( function ( haps ) { var prob = 1 ; return [ iterable ( haps ) . mapApply ( function ( n , v , p ) { prob *= p ; return [ n , v ] ; } ) . toObject ( ) , prob ] ; } ) . toArray ( ) ; }
The method `possibleHaps` is analogous to `Game.possibleMoves`.
The method ` possibleHaps ` is analogous to ` Game . possibleMoves ` .