-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
158 lines (150 loc) · 7.47 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<html>
<head>
<meta name="google-site-verification" content="_wZ35Xum9aqHSxcBbLx_RvjqJBHuamAQ6qmru5QZNWc" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Wumpus World Game</title>
<meta name="author" content="Luka Steinbach">
<meta name="description"
content="Navigate through the rooms to find an arrow to kill the Wumpus. Be careful not to fall into one of the deadly pits or run into the Wumpus.">
<meta name="keywords" content="wumpus world, game, wumpus world game, knowledge-based agent, Hunt the Wumpus, logic">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
<link rel="manifest" href="img/site.webmanifest">
<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="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous">
</script>
<script src="js/misc.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.sound.js" onload="updateVolume"></script>
<script src="js/sketch.js"></script>
<script src="js/progressbar.js"></script>
<script src="js/world.js"></script>
<script src="js/room.js"></script>
<script src="js/agent.js"></script>
<script src="js/wumpus.js"></script>
<script src="js/pit.js"></script>
<script src="js/gold.js"></script>
<script src="js/astar.js"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/bootstrap-social.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="">Wumpus World</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a target="_blank" class="nav-link" href="https://github.com/luka1199/wumpus-world">Repo</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="" data-toggle="modal" data-target="#controlsModal">
Controls
</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="" data-toggle="modal" data-target="#aboutModal">
About
</a>
</li>
<li class="nav-item active" id="github-profile-button">
<a class="btn btn-social-icon btn-github" target="_blank" href="https://github.com/luka1199">
<span class="fa fa-github"></span>
</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<div id="canvas-container" class="canvas-container"></div>
<div class="sidebar-container">
<div class="sidebar">
<div class="sidebar-content">
<label for="world-size-slider">World size: <span class="world-size-value"></span></label><br>
<input type="range" min="4" max="20" value="4" class="slider" id="world-size-slider">
</div>
<div class="sidebar-content">
<input type="checkbox" id="world-auto-increment">
<label for="world-auto-increment">Increase world size after victory</label>
</div>
<div class="sidebar-content">
<label for="volume-slider">Volume: <span class="volume-value"></span></label><br>
<input type="range" min="0" max="100" value="10" class="slider" id="volume-slider">
</div>
<button type="button" class="btn btn-dark btn-lg" onclick="restart(); this.blur();">Restart</button>
</div>
</div>
</div>
<!-- Controls -->
<div class="modal fade" id="controlsModal" tabindex="-1" role="dialog" aria-labelledby="controlsModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="controlsModalLabel">Controls</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<img src="img/controls.png" style="width:100%">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-dark" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- About -->
<div class="modal fade" id="aboutModal" tabindex="-1" role="dialog" aria-labelledby="aboutModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="aboutModalLabel">The Wumpus world</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
The Wumpus world is a simple world example to illustrate the worth of a knowledge-based agent and to represent
knowledge
representation. It was inspired by a video game Hunt the Wumpus by Gregory Yob in 1973. <br>
<br>
The Wumpus world is a cave which has rooms connected with passageways. We have a knowledge-based agent who
will go
forward in this world. The cave has a room with a beast which is called Wumpus, who eats anyone who enters the
room. The
Wumpus can be shot by the agent, but the agent has to find an arrow first, which spawns somewhere in the cave.
In the
Wumpus world, there are pits which are bottomless, and if the agent falls in a pit, he will be stuck there
forever. The
agent goal is to find the arrow and kill the Wumpus without falling into a pit or getting killed by the
Wumpus. <br>
In the rooms directly adjacent to a pit, the agent can perceive a breeze.
In the rooms directly adjacent to the wumpus, the agent can perceive a stench.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-dark" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
</html>