Anonymous user
Tic-tac-toe: Difference between revisions
→{{header|Prolog}}
(Improved D entry) |
|||
Line 1,295:
minimax(Player, Deep, MaxDeep, B, V-B) :-
( eval(Player, Deep, B, V) -> true
; % in this version
( Deep > MaxDeep
% here we must compute all the possible moves to know the evaluation of the board
|