aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/components/RulesView.svelte
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-04-25 20:13:18 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-04-25 20:13:18 +0200
commit39940aaabd057cb498d51cd2cceef7be187ab3d2 (patch)
tree829c81085e1b9ab3c600022c8caac486228e772d /web/pw-server/src/lib/components/RulesView.svelte
parent9f24a6184e6b63346aea33373b10a92e86b31225 (diff)
downloadplanetwars.dev-39940aaabd057cb498d51cd2cceef7be187ab3d2.tar.xz
planetwars.dev-39940aaabd057cb498d51cd2cceef7be187ab3d2.zip
add turn limit and environment info to rules
Diffstat (limited to 'web/pw-server/src/lib/components/RulesView.svelte')
-rw-r--r--web/pw-server/src/lib/components/RulesView.svelte17
1 files changed, 16 insertions, 1 deletions
diff --git a/web/pw-server/src/lib/components/RulesView.svelte b/web/pw-server/src/lib/components/RulesView.svelte
index 177b5b1..360504a 100644
--- a/web/pw-server/src/lib/components/RulesView.svelte
+++ b/web/pw-server/src/lib/components/RulesView.svelte
@@ -1,6 +1,6 @@
<div class="container">
<div class="game-rules">
- <h3>Welcome to planetwars!</h3>
+ <h2 class="title">Welcome to planetwars!</h2>
<p>
Planetwars is a game of galactic conquest for busy people. Your goal is to program a bot that
@@ -91,6 +91,17 @@
</p>
<p>
+ The game will end when no enemy player ships remain (neutral ships may survive), or when the
+ turn limit is reached. The default limit is 100 turns.
+ </p>
+
+ <p>
+ You can code your bot in python 3.10. You have the entire stdlib at your disposal. <br />
+ If you'd like additional libraries or a different programming language, feel free to nag the administrator.
+ </p>
+
+ <h3 class="tldr">TL;DR</h3>
+ <p>
Head over to the editor view to get started - a working example is provided. <br />
Feel free to just hit the play button to see how it works!
</p>
@@ -111,4 +122,8 @@
.game-rules p {
padding-top: 1.5em;
}
+
+ .game-rules .tldr {
+ padding-top: 3em;
+ }
</style>