Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632111 Views

Latest files of /cody/Kuldeep-Sharmaa/Tic-Tac-Toe-game

style.css cody/Kuldeep-Sharmaa/Tic-Tac-Toe-game/style.css
97 Views
0 Comments
* {
margin: 0;
padding: 0;
}
nav {
background-color: black;
color: whitesmoke;
height: 65%;
Responsive.css cody/Kuldeep-Sharmaa/Tic-Tac-Toe-game/Responsive.css
95 Views
0 Comments
@media screen and (max-width: 500px) {
.main {
flex-direction: column;
align-items: center;
height: 50vh;
}
.main .container {
display: grid;
Tic Tac Toe Game cody/Kuldeep-Sharmaa/Tic-Tac-Toe-game/index.html
400 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="Responsive.css" />
<link rel="stylesheet" href="style.css" />
script.js cody/Kuldeep-Sharmaa/Tic-Tac-Toe-game/script.js
173 Views
0 Comments
console.log("Welcome to Tic Tak Toe");
let turn = "X";
let isgameover = false;

// Function to change the trun
const changeTurn = () => {
return turn === "X" ? "0" : "X";
};