-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabuleiro.html
32 lines (31 loc) · 1.05 KB
/
tabuleiro.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Connect 4 com IA</title>
<link rel="stylesheet" href="styleTabuleiro.css" />
</head>
<body>
<h1>Connect 4 - Jogo com IA</h1>
<div id="controls">
<button onclick="startGame('minimax')">Jogar com Minimax</button>
<button onclick="startGame('alphabeta')">Jogar com Alfa-Beta</button>
<label for="ply-depth">Profundidade (ply):</label>
<input type="number" id="ply-depth" min="1" max="4" value="2" />
<button onclick="restartGame()">Reiniciar</button>
<button onclick="window.location.href='index.html'">
Voltar à Tela Inicial
</button>
</div>
<div id="win-counters">
<span id="player-wins">Vitórias do Jogador: 0</span>
<span id="ai-wins">Vitórias da IA: 0</span>
</div>
<div id="message"></div>
<div id="board-container">
<div id="board"></div>
</div>
<script src="script.js"></script>
</body>
</html>