Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Prolog Perl
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
affichage.pl
alphabeta.pl
coups_possibles.pl
evaluation.pl
first_ai.pl
gagne.pl
infinityloop.out
jouer_coup.pl
main.pl
pousse_possible.pl
tools.pl

README

| ?- ['main'].
compiling /home/thomas/Programmation/UVs/ia02/ai-siam/main.pl for byte code...
/home/thomas/Programmation/UVs/ia02/ai-siam/main.pl compiled, 635 lines read - 99961 bytes written, 44 ms

(8 ms) yes
| ?- ai_vs_ai.
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     |  M  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
[[(0,n),(0,n),(0,w),(0,e),(0,e)],[(0,s),(0,s),(0,s),(0,w),(0,e)],[32,33,34],e]
Player (e) must play
Choose : 0,12,n score : 0
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     |  M  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
[[(12,n),(0,n),(0,w),(0,e),(0,e)],[(0,s),(0,s),(0,s),(0,w),(0,e)],[32,33,34],r]
Player (r) must play
Choose : 0,52,s score : -15
+-----+-----+-----+-----+-----+
|     | R↓  |     |     |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     |  M  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
[[(12,n),(0,n),(0,w),(0,e),(0,e)],[(52,s),(0,s),(0,s),(0,w),(0,e)],[32,33,34],e]
Player (e) must play
Choose : 0,12,n score : 15
+-----+-----+-----+-----+-----+
|     | R↓  |     |     |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     |  M  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
[[(22,n),(12,n),(0,w),(0,e),(0,e)],[(52,s),(0,s),(0,s),(0,w),(0,e)],[32,33,34],r]
Player (r) must play
Choose : 0,53,s score : -25
+-----+-----+-----+-----+-----+
|     | R↓  | R↓  |     |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     |  M  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
[[(22,n),(12,n),(0,w),(0,e),(0,e)],[(52,s),(53,s),(0,s),(0,w),(0,e)],[32,33,34],e]
Player (e) must play
Choose : 0,12,n score : 25
+-----+-----+-----+-----+-----+
|     | R↓  | R↓  |     |     |
+-----+-----+-----+-----+-----+
|     |  M  |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
[[(32,n),(22,n),(12,n),(0,e),(0,e)],[(52,s),(53,s),(0,s),(0,w),(0,e)],[42,33,34],r]
Player (r) must play
Choose : 52,51,s score : -40
+-----+-----+-----+-----+-----+
| R↓  |     | R↓  |     |     |
+-----+-----+-----+-----+-----+
|     |  M  |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
[[(32,n),(22,n),(12,n),(0,e),(0,e)],[(51,s),(53,s),(0,s),(0,w),(0,e)],[42,33,34],e]
Player (e) must play
Choose : 0,14,n score : 13
+-----+-----+-----+-----+-----+
| R↓  |     | R↓  |     |     |
+-----+-----+-----+-----+-----+
|     |  M  |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     | E↑  |     |
+-----+-----+-----+-----+-----+
[[(32,n),(22,n),(12,n),(14,n),(0,e)],[(51,s),(53,s),(0,s),(0,w),(0,e)],[42,33,34],r]
Player (r) must play
Choose : 0,41,e score : -18
+-----+-----+-----+-----+-----+
| R↓  |     | R↓  |     |     |
+-----+-----+-----+-----+-----+
| R→  |  M  |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     | E↑  |     |
+-----+-----+-----+-----+-----+
[[(32,n),(22,n),(12,n),(14,n),(0,e)],[(51,s),(53,s),(41,e),(0,w),(0,e)],[42,33,34],e]
Player (e) must play
Choose : 0,14,n score : 12
+-----+-----+-----+-----+-----+
| R↓  |     | R↓  |     |     |
+-----+-----+-----+-----+-----+
| R→  |  M  |     |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     | E↑  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     | E↑  |     |
+-----+-----+-----+-----+-----+
[[(32,n),(22,n),(12,n),(24,n),(14,n)],[(51,s),(53,s),(41,e),(0,w),(0,e)],[42,33,34],r]
Player (r) must play
Choose : 0,53,s score : -17
+-----+-----+-----+-----+-----+
| R↓  |     | R↓  |     |     |
+-----+-----+-----+-----+-----+
| R→  |  M  | R↓  |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     | E↑  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     | E↑  |     |
+-----+-----+-----+-----+-----+
[[(32,n),(22,n),(12,n),(24,n),(14,n)],[(51,s),(43,s),(41,e),(53,s),(0,e)],[42,33,34],e]
Player (e) must play
Choose : 12,22,n score : 7
+-----+-----+-----+-----+-----+
| R↓  |  M  | R↓  |     |     |
+-----+-----+-----+-----+-----+
| R→  | E↑  | R↓  |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     | E↑  |     |
+-----+-----+-----+-----+-----+
|     |     |     | E↑  |     |
+-----+-----+-----+-----+-----+
[[(42,n),(32,n),(22,n),(24,n),(14,n)],[(51,s),(43,s),(41,e),(53,s),(0,e)],[52,33,34],r]
Player (r) must play
Choose : 0,51,e score : -12
+-----+-----+-----+-----+-----+
| R→  | R↓  |  M  | R↓  |     |
+-----+-----+-----+-----+-----+
| R→  | E↑  | R↓  |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     | E↑  |     |
+-----+-----+-----+-----+-----+
|     |     |     | E↑  |     |
+-----+-----+-----+-----+-----+
[[(42,n),(32,n),(22,n),(24,n),(14,n)],[(52,s),(43,s),(41,e),(54,s),(51,e)],[53,33,34],e]
Player (e) must play
Choose : 14,13,n score : -10000
+-----+-----+-----+-----+-----+
| R→  | R↓  |  M  | R↓  |     |
+-----+-----+-----+-----+-----+
| R→  | E↑  | R↓  |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     | E↑  |     |
+-----+-----+-----+-----+-----+
|     |     | E↑  |     |     |
+-----+-----+-----+-----+-----+
[[(42,n),(32,n),(22,n),(24,n),(13,n)],[(52,s),(43,s),(41,e),(54,s),(51,e)],[53,33,34],r]
Player (r) must play
Choose : 43,43,n score : 10000
+-----+-----+-----+-----+-----+
| R→  | R↓  |  M  | R↓  |     |
+-----+-----+-----+-----+-----+
| R→  | E↑  | R↑  |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     | E↑  |     |
+-----+-----+-----+-----+-----+
|     |     | E↑  |     |     |
+-----+-----+-----+-----+-----+
[[(42,n),(32,n),(22,n),(24,n),(13,n)],[(52,s),(43,n),(41,e),(54,s),(51,e)],[53,33,34],e]
Player (e) must play
Choose : 24,14,n score : -10000
+-----+-----+-----+-----+-----+
| R→  | R↓  |  M  | R↓  |     |
+-----+-----+-----+-----+-----+
| R→  | E↑  | R↑  |     |     |
+-----+-----+-----+-----+-----+
|     | E↑  |  M  |  M  |     |
+-----+-----+-----+-----+-----+
|     | E↑  |     |     |     |
+-----+-----+-----+-----+-----+
|     |     | E↑  | E↑  |     |
+-----+-----+-----+-----+-----+
[[(42,n),(32,n),(22,n),(14,n),(13,n)],[(52,s),(43,n),(41,e),(54,s),(51,e)],[53,33,34],r]
Player (r) must play
Choose : 43,53,n score : 10000
gagnant : r

(322424 ms) yes

Something went wrong with that request. Please try again.