summaryrefslogtreecommitdiff
path: root/game.php
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-09-20 09:26:58 -0700
committerlouie <lshprung@yahoo.com>2020-09-20 09:26:58 -0700
commita8c0d5619ee6d518737628d6c585233d0bba23da (patch)
tree30c13cf2439700c78d51acc9b430cb5fa092f963 /game.php
First commit
Diffstat (limited to 'game.php')
-rw-r--r--game.php41
1 files changed, 41 insertions, 0 deletions
diff --git a/game.php b/game.php
new file mode 100644
index 0000000..7f4715b
--- /dev/null
+++ b/game.php
@@ -0,0 +1,41 @@
+<?php
+ include 'scripts.php';
+?>
+
+<html>
+ <head>
+ <title>Yahtzee</title>
+ <link rel="stylesheet" href="yahtzee.css">
+ </head>
+
+ <body>
+ <a href='mode_select.php'><span class='back'>&lt Go Back</span></a>
+ <h1 class='shifted_head'>
+ <?=make_head('Yahtzee')?>
+ </h1>
+
+ <?=check_end()?>
+
+ <form>
+ <div class='top_pad'></div>
+ <div class=dice_display>
+ <?=display_dice()?>
+ </div>
+ <span id='submit_line' <?php if($_GET["score21"]) print "style=display:none;" ?>>
+ <span id='roll_count' <?= roll_num() ?>>
+ Roll #<?= $_GET["roll_num"] ?>
+ </span>
+ <input id=roll_display type="submit" value="Roll!"
+ <?=show_roll()?>>
+ <input id='submit' type="submit" value="Submit">
+ </span>
+ <?=next_level()?>
+ <?=calc_score()?>
+ </form>
+
+ <h2>Scoreboard</h2>
+ <div id='full_scoreboard'>
+ <?=create_scoreboard()?>
+ </div>
+ </body>
+</html> \ No newline at end of file