X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/7b8732a6aba5c34e24aa324a25e2fae37f7149a7..9656502aaa68fb88bfc0664b0d60e8ed25a9acb0:/config/statement_en.html diff --git a/config/statement_en.html b/config/statement_en.html index b5f784b..05a95cf 100644 --- a/config/statement_en.html +++ b/config/statement_en.html @@ -111,11 +111,17 @@
Map Input

- Your first line of input contains space-separated + This section's HTML gets messed up somewhere in the SDK + pipeline. I reported it there; and there + you'll be able to find a readable representation of this + block. Sorry about the inconvenience… +

+

+ Your first line of input contains five space-separated parameters: roadLength initialStones gameSeed gameSide - reserved1reservedN + reserved

roadLength
@@ -144,9 +150,9 @@ (reproducible) random that doesn't mecessarily draw when it plays against itself. -
reservedN
+
reserved
- one or more parameters, reserved for future use + reserved for future use, ignore for now
@@ -207,6 +213,37 @@ +
+

+   + Proper RNG seeding examples +

+ + + + + + + + + + + + + + + + + +
Language FamilySample
JVM + long mySecretSalt = 0x4242424242424242L;
+ Random random = new Random(gameSeed ^ gameSide ^ mySecretSalt); +
C, C++, Perl… + srand(gameSeed ^ gameSide ^ 0xdeadb33f);
+ std::srand(gameSeed ^ gameSide ^ 12345);
+ srand( $gameSeed ^ $gameSide ^ 0xCAFE_BABE ); +
OtherUnachievable until proven otherwise
+

  @@ -264,7 +301,7 @@

This draft's last change is: - game seed is sent in inputs. + early game termination.