zylyzghc/index.html

85 lines
3.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>斗地主游戏</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="game-container">
<header class="game-header">
<h1>斗地主游戏</h1>
<div class="game-info">
<span id="game-status">等待开始游戏</span>
<span id="current-player">当前玩家:</span>
</div>
</header>
<main class="game-table">
<!-- 地主牌区域 -->
<div class="landlord-cards">
<div id="landlord-indicator">地主牌:</div>
<div id="landlord-cards-area"></div>
</div>
<!-- 电脑玩家1 -->
<div class="player player-1">
<div class="player-info">
<span class="player-name">电脑玩家1</span>
<span id="player-1-cards-count" class="cards-count">17</span>
<span id="player-1-role" class="player-role"></span>
</div>
<div id="player-1-cards" class="player-cards"></div>
<div id="player-1-last-play" class="last-play"></div>
</div>
<!-- 电脑玩家2 -->
<div class="player player-2">
<div class="player-info">
<span class="player-name">电脑玩家2</span>
<span id="player-2-cards-count" class="cards-count">17</span>
<span id="player-2-role" class="player-role"></span>
</div>
<div id="player-2-cards" class="player-cards"></div>
<div id="player-2-last-play" class="last-play"></div>
</div>
<!-- 当前出牌区域 -->
<div class="current-play-area">
<div id="current-play-info">当前出牌:</div>
<div id="current-play-cards"></div>
</div>
<!-- 玩家自己(下) -->
<div class="player player-self">
<div class="player-info">
<span class="player-name"></span>
<span id="self-cards-count" class="cards-count">17</span>
<span id="self-role" class="player-role"></span>
</div>
<div id="self-cards" class="player-cards"></div>
<div id="self-last-play" class="last-play"></div>
</div>
</main>
<div class="game-controls">
<button id="start-game">开始游戏</button>
<div class="landlord-buttons" style="display: none;">
<button id="call-landlord">叫地主</button>
<button id="no-call">不叫</button>
</div>
<div class="play-buttons" style="display: none;">
<button id="play-cards">出牌</button>
<button id="pass">不出</button>
</div>
<div class="game-stats">
<span>积分:</span>
<span id="score">0</span>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>