Advertisement
Guest User

Untitled

a guest
Dec 8th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.29 KB | None | 0 0
  1. checkPlayablePositions([],_,[],_).
  2.  
  3. checkPlayablePositions([H|T], X1, [Pos|L], Pos):-
  4.     validaAdjacencia(Pos,[H|T],X1),
  5.     Pos1 is Pos + 1.
  6.     checkPlayablePositions(T,X1,L,Pos1)
  7.  
  8. checkPlayablePositions([H|T], X1, L,Pos):-
  9.     Pos1 is Pos + 1.
  10.     checkPlayablePositions(T, X1, L, Pos).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement