From a8f96ab8b6b097dfdd90e09562dbc4d3d62fab6b Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 7 Jan 2024 07:54:22 +0000 Subject: [PATCH] fix sudoku lmao --- html/gamehub.ejs | 130 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 112 insertions(+), 18 deletions(-) diff --git a/html/gamehub.ejs b/html/gamehub.ejs index f421a1a0..3baebc8a 100644 --- a/html/gamehub.ejs +++ b/html/gamehub.ejs @@ -8,7 +8,7 @@ - + @@ -78,7 +78,7 @@ cursor: pointer; } - Games Hub + Gaming Hub
@@ -123,6 +123,7 @@ html, body { height: 100%; margin: 0; + background: linear-gradient(135deg, #2c3e50, #34495e); overflow: hidden; } canvas { @@ -131,7 +132,7 @@ position: absolute; } - Snake + Snak @@ -291,12 +292,14 @@ function resetGame() { align-items: center; justify-content: center; height: 100vh; + background: linear-gradient(135deg, #2c3e50, #34495e); margin: 0; } .container { text-align: left; margin-top: 20px; margin-left: 20px; + color:#fff; } .board { display: grid; @@ -381,12 +384,12 @@ function resetGame() { renderBoard(); const winner = checkWinner(); if (winner) { - messageElement.textContent = `Player ${winner} wins!`; + messageElement.textContent = `Player ${winner} won!!!!!! woaah`; } else if (checkDraw()) { - messageElement.textContent = "It's a draw!"; + messageElement.textContent = "It's a draw! oh welp >~<"; } else { currentPlayer = currentPlayer === "X" ? "O" : "X"; - messageElement.textContent = `Player ${currentPlayer}'s turn`; + messageElement.textContent = `Player ${currentPlayer}'s turn :3`; if (currentPlayer === "O") { setTimeout(makeComputerMove, 1000); // AI waits for 1 second } @@ -410,12 +413,12 @@ function resetGame() { renderBoard(); const winner = checkWinner(); if (winner) { - messageElement.textContent = `Player ${winner} wins!`; + messageElement.textContent = `Player ${winner} won!!!!!! woaah`; } else if (checkDraw()) { - messageElement.textContent = "It's a draw!"; + messageElement.textContent = "It's a draw! oh welp >~<"; } else { currentPlayer = currentPlayer === "X" ? "O" : "X"; - messageElement.textContent = `Player ${currentPlayer}'s turn`; + messageElement.textContent = `Player ${currentPlayer}'s turn :3`; } } } @@ -434,7 +437,7 @@ function resetGame() { function resetGame() { currentPlayer = "X"; board = ["", "", "", "", "", "", "", "", ""]; - messageElement.textContent = `Player ${currentPlayer}'s turn`; + messageElement.textContent = `Player ${currentPlayer}'s turn :3`; renderBoard(); // If AI is the starting player, make the first move @@ -466,7 +469,7 @@ function resetGame() { align-items: center; justify-content: space-between; height: 100vh; - background: #000; + background: linear-gradient(135deg, #2c3e50, #34495e); color: #fff; font-family: 'Arial', sans-serif; } @@ -491,9 +494,9 @@ function resetGame() {

- Press space to start + U can press space to start owo

-

Left Paddle Controls: W (Up) and S (Down)

+

Left Paddle Controls : W (Up) and S (Down)

Right Paddle Controls: Arrow Up (Up) and Arrow Down (Down)

-