Add uebung8

This commit is contained in:
2019-06-30 13:38:50 +02:00
parent 73abfccad7
commit d18c038d38
20 changed files with 2711 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
require_once(__DIR__ . "/hangman_lib.php");
$arr = getAllWords();
echo <<<END
<table style="width:100%">
<tr>
<th>Wort</th>
<th>Zu raten</th>
<th>Maske</th>
</tr>
END;
foreach ($arr as $a) {
$transformed = transformWord($a);
$mask = maskWord($a);
echo <<<END
<tr>
<td>$a</td>
<td>$transformed</td>
<td>$mask</td>
</tr>
END;
}
echo <<<END
</table>
END;
?>