title: prolog How to get a permutaion of a list of a certain data structure .?
body: <p>Can Anybody help me get all possible games not just what I achieved here which is only one combination ?</p>
  
  <pre><code>sched(0,[]).
  
  sched(RoundNumber, [game(Y, RoundNumber, quarterfinals)|T]) :-
      RoundNumber &gt; 1,
      Y is RoundNumber -1,
      N is RoundNumber -2,
      sched(N, T).
  </code></pre>