src/utils/GameTree.js
/** Returns the possible moves is the state is an instance of Game, or the possible haps values 
	if the state is contingent.
	*/
Returns the possible moves is the state is an instance of Game, or the possible haps values
if the state is contingent.
Returns the possible moves is the state is an instance of Game or the possible haps values if the state is contingent .
function possibleTransitions() {
		var state = this.state,
			Cons = this.constructor,
			parent = this;
		raiseIf(!state, "GameTree node has no state!");
		if (state.isContingent) {
			return state.possibleHaps().map(function (t) {
				var child = new Cons({ parent: parent, transition: t[0], probability: t[1] });
				return child;
			});
		} else {
			return state.possibleMoves().map(function (m) {
				return new Cons({ parent: parent, transition: m });
			});
		}
	}
function possibleTransitions ( ) { var state = this . state , Cons = this . constructor , parent = this ; raiseIf ( ! state , "GameTree node has no state!" ) ; if ( state . isContingent ) { return state . possibleHaps ( ) . map ( function ( t ) { var child = new Cons ( { parent : parent , transition : t [ 0 ] , probability : t [ 1 ] } ) ; return child ; } ) ; } else { return state . possibleMoves ( ) . map ( function ( m ) { return new Cons ( { parent : parent , transition : m } ) ; } ) ; } }
Returns the possible moves is the state is an instance of Game, or the possible haps values
if the state is contingent.
Returns the possible moves is the state is an instance of Game or the possible haps values if the state is contingent .