X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/7b8732a6aba5c34e24aa324a25e2fae37f7149a7..b327ce8704f1585747bbb5b206cc357b6fbfef51:/config/statement_en.html?ds=inline diff --git a/config/statement_en.html b/config/statement_en.html index b5f784b..f6afd2d 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
+