def support_enumeration_gen(g):
 try:
  N = g.N
 except:
  raise TypeError('input must be a 2-player NormalFormGame')
 if (N != 2):
  raise NotImplementedError('Implemented only for 2-player games')
 return _support_enumeration_gen(g.players[0].payoff_array, g.players[1].payoff_array)

def support_enumeration_gen ( g ) : try : N = g . N except : raise TypeError ( 'input must be a 2-player NormalFormGame' ) if ( N != 2 ) : raise NotImplementedError ( 'Implemented only for 2-player games' ) return _support_enumeration_gen ( g . players [ 0 ] . payoff_array , g . players [ 1 ] . payoff_array )
generator version of support_enumeration .