forked from aichallenge/aichallenge
/
game_settings.php
32 lines (26 loc) · 940 Bytes
/
game_settings.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
<?php
$title="Game Settings";
require_once('header.php');
require_once('server_info.php');
?>
<h1>Game Settings</h1>
<p>These are the settings given to the engine specifying the various options for how the game will be played. Note the list here is generated directly from the main server, some of these options may be overidden dynamically before being given to the engine. In particular at this time the game turn limit ('turns' below) is adjusted on a per map basis.</p>
<table>
<?php foreach ($server_info['game_options'] as $option => $value): ?>
<tr>
<th><?=$option ?></th>
<td><?php
if (is_array($value)) {
foreach($value as $v) {
echo $v .", ";
}
} else if (is_bool($value)) {
echo $value ? 'True' : 'False';
} else {
print_r($value);
}
?></td>
</tr>
<?php endforeach ?>
</table>
<?php include 'footer.php' ?>