/
markov.html
49 lines (41 loc) · 2.64 KB
/
markov.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
<!DOCTYPE html>
<html>
<head>
<title>Markov Chains</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="calculate.js"></script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<link href="markov.css" rel="stylesheet">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
</head>
<body>
<div class = "navbar navbar-inverse navbar-fixed-top">
<div class = "navbar-inner">
<a class = "brand" id = "title">Markov Chain: Lego Game</a>
<div class = "nav-collapse collapse">
<a class = "brand rules" href="#rulesModal" data-toggle = "modal">Rules</a>
</div>
</div>
</div>
<div id="rulesModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">How to Play the Lego Game</h3>
</div>
<div class="modal-body">
<p>Some number of <span style='color:white'>white</span> lego bricks and <span style='color:red'>red</span> lego bricks are put into a bag. A transition and an observation happens every round.<br>1. A random brick is removed from the bag, and a replacement brick that is equally likely to be <span style='color:red'>red</span> or <span style='color:white'>white</span> is added to the bag.<br>2. Then you pull another random brick from the bag, observe color, and replace.</p>
<p class='text-info'><small><br>Fill in the blank with appropriate probabilities. The default setting starts with two <span style='color:white'>white</span> lego bricks in the bag. You may change the number of blocks on the right column and start over.</small></p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<div class='markov'></div>
<script src="markov.js"></script>
</body>
</html>