aboutsummaryrefslogtreecommitdiffstats
path: root/dotsandboxes/web/dotsandboxes.html
blob: 4e97508be3eec28414685f243db6cb880e9f0254 (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Dots and Boxes</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="dotsandboxes.css">
</head>
<body>
	<div class="container">
		<h1>Dots and Boxes</h1>
		<div class="row">
			<div class="col-md">
				<div id="playing-area"></div>
			</div>
			<div class="col-md">
				<div class="form-group">
				<p>Size of game:</p>
				<div class="input-group">
				<div class="input-group-prepend">
				<span class="input-group-text">Rows and Columns</span>
				</div>
				<input type="number" class="form-control" id="nb-rows" value=6>
				<input type="number" class="form-control" id="nb-cols" value=6>
				</div>
				</div>
				<div class="form-group">
				<p>Players:</p>
				<div class="input-group mb-3">
				<div class="input-group-prepend"><span class="input-group-text" id="basic-addon3">Agent 1</span></div>
				<input type="text" class="form-control" id="agent1" aria-describedby="basic-addon3">
				</div>
				<div class="input-group mb-3">
				<div class="input-group-prepend"><span class="input-group-text" id="basic-addon3">Agent 2</span></div>
				<input type="text" class="form-control" id="agent2" aria-describedby="basic-addon3">
				</div>
				<p>Fill in the address where an agent can be reached using WebSockets (e.g. ws://127.0.0.1:8089).
				If a field is empty a human player is assumed.
				</p>
				<button type="button" class="btn btn-secondary" id="restart-btn">Restart game</button>
				</div>
			</div>
		</div>
	</div>
	<script src="https://d3js.org/d3.v4.min.js"></script>
	<script src="dotsandboxes.js"></script>
</body>
</html>