diff --git a/othello_rapport_2.pdf b/othello_rapport_2.pdf new file mode 100644 index 0000000..a0a08e0 Binary files /dev/null and b/othello_rapport_2.pdf differ diff --git a/src/othello/MainStats.java b/src/othello/MainStats.java index ce0a310..d8feafb 100644 --- a/src/othello/MainStats.java +++ b/src/othello/MainStats.java @@ -5,14 +5,15 @@ import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import othello.players.AlphaBetaPlayer; +import othello.players.NegamaxPlayer; import othello.players.Player; public class MainStats { public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException { - Player p1 = new AlphaBetaPlayer(1); - Player p2 = new AlphaBetaPlayer(5); + Player p1 = new NegamaxPlayer(2); + Player p2 = new NegamaxPlayer(2); Player[][] board = initialize(p1, p2); State game = new State(board, p1, p2); System.out.println("joueur 1: " + p1); diff --git a/statsj1.txt b/statsj1.txt index 021ccfa..848e4d1 100644 --- a/statsj1.txt +++ b/statsj1.txt @@ -1,67 +1,52 @@ -6 -16 -29 -44 -66 -90 -111 -142 -168 -195 -221 -249 -287 -327 -362 -393 -424 -461 -494 -527 -563 -607 -638 -671 -706 -737 -766 -797 -827 -854 -886 -915 -940 -969 -992 -1023 -1053 -1091 -1125 -1165 -1196 -1234 -1274 -1313 -1348 -1386 -1424 -1462 -1501 -1538 -1579 -1615 -1654 -1684 -1710 -1742 -1767 -1791 -1810 -1836 -1856 -1875 -1895 -1905 -1914 -1922 -1928 +432 +1992 +4828 +8150 +14407 +23013 +30491 +42053 +51206 +69655 +86676 +104309 +115501 +127748 +139306 +158959 +181347 +195343 +234427 +298978 +384890 +454787 +503066 +554466 +603597 +682788 +747703 +858815 +961301 +1018546 +1086933 +1165047 +1235929 +1286641 +1310141 +1346611 +1375881 +1403297 +1430326 +1469132 +1498301 +1534663 +1553484 +1572641 +1589467 +1603894 +1615109 +1619279 +1621225 +1623460 +1624735 +1624811 diff --git a/statsj2.txt b/statsj2.txt index ce2cc9a..c6a5836 100644 --- a/statsj2.txt +++ b/statsj2.txt @@ -1,67 +1,52 @@ -6 -16 -28 -37 -46 -56 -65 -75 -86 -107 -121 -133 -149 -172 -194 -206 -234 -254 -272 -295 -319 -338 -357 -378 -409 -435 -465 -495 -523 -551 -577 -605 -630 -654 -681 -709 -735 -757 -785 -800 -825 -836 -849 -867 -875 -891 -905 -921 -936 -951 -961 -983 -1003 -1020 -1036 -1047 -1061 -1075 -1084 -1098 -1112 -1120 -1123 -1128 -1136 -1139 -1146 +720 +2712 +4940 +7337 +11453 +16716 +23764 +35025 +42907 +60299 +70521 +89718 +109605 +126838 +156244 +205938 +237343 +281749 +344586 +392942 +456525 +513322 +591740 +680035 +734402 +789176 +888420 +962506 +1032354 +1101620 +1172407 +1217925 +1260536 +1283650 +1301117 +1333526 +1343617 +1359554 +1392955 +1420325 +1444803 +1469183 +1491000 +1506375 +1519135 +1539940 +1550685 +1554788 +1556482 +1557548 +1559067 +1559202