55 lines
1.8 KiB
HTML
55 lines
1.8 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Tictactics</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
</head>
|
|
<body>
|
|
<main class="app" aria-labelledby="game-title">
|
|
<section class="play-area">
|
|
<header class="topbar">
|
|
<div>
|
|
<p class="eyebrow">capture tic tac toe</p>
|
|
<h1 id="game-title">Tictactics</h1>
|
|
</div>
|
|
<button id="resetButton" class="icon-button" type="button" aria-label="Restart game" title="Restart">
|
|
<span aria-hidden="true">↻</span>
|
|
</button>
|
|
</header>
|
|
|
|
<div class="status-row" aria-live="polite">
|
|
<div id="turnBadge" class="turn-badge player-x">X to play</div>
|
|
<div id="message" class="message">Trap enemy marks between your marks. First to four wins.</div>
|
|
</div>
|
|
|
|
<div id="board" class="board" role="grid" aria-label="Tictactics board"></div>
|
|
</section>
|
|
|
|
<aside class="side-panel" aria-label="Game details">
|
|
<div class="score-row">
|
|
<div class="score-box">
|
|
<span class="score-label">X captures</span>
|
|
<strong id="xCaptures">0</strong>
|
|
</div>
|
|
<div class="score-box">
|
|
<span class="score-label">O captures</span>
|
|
<strong id="oCaptures">0</strong>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="rule-card">
|
|
<h2>Rule</h2>
|
|
<p>Place a mark on an empty cell. Any enemy marks trapped in a straight line between your marks are removed.</p>
|
|
</div>
|
|
|
|
<ol id="moveList" class="move-list" aria-label="Move history"></ol>
|
|
</aside>
|
|
</main>
|
|
|
|
<script src="game.js"></script>
|
|
</body>
|
|
</html>
|
|
|