-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
133 lines (114 loc) · 4.15 KB
/
index.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nine Mens Morris</title>
</head>
<style media="screen">
#board-container {
max-width: 600px;
}
#alert {
margin: auto;
color: white;
background: red;
text-align: center;
}
#turnPromptText {
background: blue;
}
.center {
margin: auto;
text-align: center;
}
body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
#wrapper {
flex: 1;
}
</style>
<link href="./public/bulma.css" rel="stylesheet">
<body>
<div id="wrapper">
<section class="hero is-primary is-bold">
<div class="hero-body">
<div class="container">
<h1 class="title">
Nine Mens Morris
</h1>
<h2 class="subtitle">
A game to demonstrate an understanding of minimax with alpha-beta pruning.
</h2>
</div>
</div>
</section>
<section class="section">
<div class="container">
<div class="heading">
<div id="phase">
<h1 id="phaseText" class="title">Phase 1: Place and capture pieces</h1>
</div>
<h2 class="subtitle">
<div id="turn">
<h3 id="turnText"></h3> <span id="turnPromptText"></span>
</div>
</h2>
</div>
</div>
</section>
<div class="container" id="board-container">
<div class="card">
<div class="card-content">
<p class="title">
<div class="center">
<object id="board" data="./public/board.svg" type="image/svg+xml"></object>
</div>
<div id="alert">
<p id="alertText"></p>
</div>
</p>
</div>
<div id="depth-control">
<footer class="card-footer center">
<article class="message is-danger container center">
<div class="message-body">
Control how far the AI can lookahead. <br> Entering depths greater than 3 will result in much longer wait times.
<p class="control card-footer-item">
<span class="tag is-primary is-medium" style="margin-right: 5px;">Depth</span>
<input type="hidden" value="True" name="ai" />
<input id="depth" type="number" class="input" min="0" value="3" style="margin-right: 5px;" name="depth" />
</p>
</div>
</article>
</footer>
</div>
</div>
</div>
<section id="robot" class="section columns">
<div class="container column is-2 is-offset-5">
<div class="heading">
<h2 class="subtitle">
<div class="box center">
<a href="?ai=True ">AI MODE <br> <img src="./public/robot.png " width="80px " height="80px " alt="ai mode robot " /></a>
</div>
</h2>
</div>
</div>
</section>
</div>
<footer class="footer" style="margin-top: 10px;">
<div class="container ">
<div class="content has-text-centered ">
<p>
Created by
<a href="https://github.com/cyang ">Christopher Yang</a> + <a href="https://github.com/exp0nge ">MD R. Islam</a> for CS 448 with Professor Lucci @ City College of New York.
</p>
</div>
</div>
</footer>
<script src="./lib/main-bundle.js " charset="utf-8 "></script>
</body>
</html>