diff --git a/script.js b/script.js index 686a3bd..474f3ad 100644 --- a/script.js +++ b/script.js @@ -73,9 +73,10 @@ class AI { return 0; } - if (depth >= this.level) { - return 0; - } + // Supprimer la vérification de la profondeur + // if (depth >= this.level) { + // return 0; + // } const opponent = 3 - this.player; const currentPlayer = maximizingPlayer ? this.player : opponent; diff --git a/style.css b/style.css index f26c395..d5ecb4e 100644 --- a/style.css +++ b/style.css @@ -91,4 +91,68 @@ h1{ #draw { color: #FFFFFF; display: none; +} + +.close-button { + position: fixed; + top: 30px; + left: 40px; + width: 50px; + height: 50px; + cursor: pointer; +} + +.close-button::before, +.close-button::after { + content: ''; + position: absolute; + height: 30px; + width: 2px; + background-color: #FFFFFF; + transition: transform 0.3s; +} + +.close-button::before { + transform-origin: center center; + transform: rotate(45deg); +} + +.close-button::after { + transform-origin: center center; + transform: rotate(-45deg); +} + +.close-button:hover::before { + transform: rotate(135deg); +} + +.close-button:hover::after { + transform: rotate(-135deg); +} + + +.github-button { + display: inline-block; + padding: 10px 20px; + background-color: #1E2125; + color: #FFFFFF; + border: 2px solid #FFFFFF; + font-size: 16px; + cursor: pointer; + margin: 20px 5px; + text-decoration: none; +} + +.github-button:hover { + background-color: #2C3036; +} + +.footer { + display: flex; + justify-content: center; + align-items: center; + width: 100%; + position: fixed; + bottom: 0; + left: 0; } \ No newline at end of file diff --git a/tictactoe.html b/tictactoe.html index 5066ab4..734e25b 100644 --- a/tictactoe.html +++ b/tictactoe.html @@ -7,7 +7,7 @@ - +

Tic Tac Toe - AI

@@ -28,6 +28,10 @@
+ +