Tic-tac-toe: Difference between revisions

(Improved D entry)
Line 1,295:
minimax(Player, Deep, MaxDeep, B, V-B) :-
( eval(Player, Deep, B, V) -> true
; % in this version ifof the game this second division always fails
( Deep > MaxDeep) -> V is random(20001000) - 1000)).
 
% here we must compute all the possible moves to know the evaluation of the board
Anonymous user