summaryrefslogtreecommitdiff
path: root/game.php
blob: 7f4715b32d4a59d789e3a2f0afd0b7d10b2f9b8f (plain)
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
<?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>