-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.php
48 lines (39 loc) · 944 Bytes
/
game.php
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
<?php
require 'format.inc.php';
require 'lib/game.inc.php';
$view = new Wumpus\WumpusView($wumpus);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Game</title>
<link href="wumpus.css" type="text/css" rel="stylesheet" />
</head>
<body>
<article>
<?php echo present_header("Stalking the Wumpus",""); ?>
<figure>
<img class = "t" src="cave.jpg" alt="cave image" width="600" height="325" />
</figure>
<?php
echo '<p>' . date("g:ia l, F j, Y") . '</p>';
?>
<?php
echo $view->presentStatus();
?>
<div class="rooms">
<?php
echo $view->presentRoom(0);
echo $view->presentRoom(1);
echo $view->presentRoom(2);
?>
</div>
<footer>
<p class="info"> <?php
echo $view->presentArrows();
?></p>
</footer>
</article>
</body>
</html>