init basic tictactoe game

This commit is contained in:
2025-11-27 16:26:51 +05:30
commit c6c9d10476
13 changed files with 4251 additions and 0 deletions

53
src/tictactoe/styles.css Normal file
View File

@@ -0,0 +1,53 @@
body {
font-family: sans-serif;
background: #f4f4f4;
display: flex;
justify-content: center;
padding-top: 50px;
margin: 0;
}
.game-container {
text-align: center;
}
.board {
width: 300px;
height: 300px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 6px;
margin: 20px auto;
}
.square {
background: white;
border: 2px solid #333;
font-size: 2rem;
font-weight: bold;
cursor: pointer;
height: 100px;
width: 100px;
}
.square:hover {
background: #eee;
}
.status {
font-size: 1.4rem;
margin-bottom: 10px;
}
.reset-btn {
padding: 10px 20px;
background: #333;
color: white;
border: none;
cursor: pointer;
font-size: 1rem;
}
.reset-btn:hover {
background: #555;
}