-
Notifications
You must be signed in to change notification settings - Fork 4
/
chutes-and-ladders-d3.html
33 lines (29 loc) · 1.3 KB
/
chutes-and-ladders-d3.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Chutes and Ladders via Markov Chains with D3 demo</title>
<!-- <script type="text/javascript" src="../d3/d3.v3.js"></script>-->
<script src="https://d3js.org/d3.v3.min.js"></script>
<link href="chutes-and-ladders-d3.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
text-align: center;
color: #555555;
background-color: white;
font-family: arial, helvetica, sans-serif;
}
a:link {color: darkgray; text-decoration: none}
a:visited {color: darkgray; text-decoration: none}
a:hover {color: silver; text-decoration: underline}
</style>
</head>
<body>
<h1>Chutes and Ladders via Markov Chains</h1>
<p>Click board to start simulation.</p>
<div id="board"></div>
<div id="lineplot"></div>
<div id="countdiv"><span style="font-size: 32px;">Moves: </span><span id="counter"></span><span style="font-size: 32px;">Win chance: </span><span id="win"></span></div>
<script type="text/javascript" src="chutes-and-ladders-d3.js"></script>
</body>
</html>