Skip to content

Commit

Permalink
4th chess game commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya committed Jan 6, 2025
1 parent c34916d commit 6d051f7
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,16 @@
justify-content: center;
margin-top: 20px;
width: 100%;
border-top: 1px solid #555;
padding-top: 20px;
}

.clock {
background: #404040;
padding: 15px;
padding: 10px;
border-radius: 8px;
text-align: center;
width: 150px;
width: calc(50% - 10px);
}

.player-label {
Expand Down Expand Up @@ -290,16 +292,6 @@ <h1>Chess Game</h1>
<div class="board-container">
<div class="chessboard" id="chessboard"></div>
<div class="status" id="status">White to move</div>
<div class="chess-clocks">
<div class="clock black-clock">
<div class="player-label">Black</div>
<div class="time" id="blackClock">5:00</div>
</div>
<div class="clock white-clock">
<div class="player-label">White</div>
<div class="time" id="whiteClock">5:00</div>
</div>
</div>
</div>
<div class="piece-legend">
<div class="legend-title">Chess Pieces</div>
Expand Down Expand Up @@ -351,6 +343,16 @@ <h1>Chess Game</h1>
<input type="text" id="moveInput" placeholder="Enter move (e.g., e2e4, 0-0, 0-0-0)">
<button onclick="makeMove()">Make Move</button>
</div>
<div class="chess-clocks">
<div class="clock black-clock">
<div class="player-label">Black</div>
<div class="time" id="blackClock">5:00</div>
</div>
<div class="clock white-clock">
<div class="player-label">White</div>
<div class="time" id="whiteClock">5:00</div>
</div>
</div>
<div class="status" id="status">White to move</div>
</div>
</div>
Expand Down

0 comments on commit 6d051f7

Please sign in to comment.