<?php

include(__DIR__ . "/config.php");
include(__DIR__ . "/autoload_namespace.php");

$hand = new \Rasb14\Dice\DiceHand(5);
$hand->roll();
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Page Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
    <h1>Rolling a dicehand width five dices</h1>
    <p><?= implode(", ", $hand->values()) ?></p>
    <p>Sum: <?= $hand->sum() ?></p>
    <p>Average: <?= $hand->average() ?></p>
</body>
</html>
