# .font: font.text_2
# .autowrap: false
# .centered: true
DSM's Guess What? 01
# .font: font.text_1
by
# .font: font.text_2
DarkStoorM
# .centered: false

# .font: font.value_1
# .autowrap: false
DARKSTOORM                        2020-07-10 16:23
# .font: font.value_2
# .autowrap: true
I THINK THIS MIGHT BE TOO HARD :D   
  
THIS ONE IS MORE TECHNICAL. I MIGHT PROVIDE SOME HINTS LATER

# .font: font.value_1
# .autowrap: false
ARNO                              2020-07-10 16:57
# .font: font.value_2
# .autowrap: true
HMMM... I SEE A LOT OF DIRT AND VERY LITTLE BOULDERS...  
  
MAY WE ASSUME THAT, IN LINE WITH PREVIOUS PUZZLES, THE RNG ITSELF AND THE SEED VALUE (10) ARE STILL THE SAME?

# .font: font.value_1
# .autowrap: false
DARKSTOORM                        2020-07-10 17:06
# .font: font.value_2
# .autowrap: true
NO VALUES WERE CHANGED, RNG IS THE SAME ;)  
THERE WAS ONE SMALL CHANGE MADE OUTSIDE THE VALUES AND THE RNG, WHICH IS REALLY INTERESTING.  
  
I'D LIKE TO GIVE A HINT, BUT I THINK THAT WOULD ALMOST BE THE SOLUTION :D

# .font: font.value_1
# .autowrap: false
NESDORI                           2020-07-10 17:37
# .font: font.value_2
# .autowrap: true
darkstoorm, NO HINTS YET PLEASE.. :)

# .font: font.value_1
# .autowrap: false
DARKSTOORM                        2020-07-10 17:44
# .font: font.value_2
# .autowrap: true
ALRIGHT!  
  
I EXPECT nesdori TO GET THIS ONE FIRST :D

# .font: font.value_1
# .autowrap: false
NESDORI                           2020-07-10 18:05
# .font: font.value_2
# .autowrap: true
OK. I CAN ALREADY VERBALLY EXPLAIN WHAT'S HAPPENING:  
  
IF THE OBJECT WHICH IS RANDOMLY GENERATED IS A BOULDER, IT'S REPLACED WITH THE NEXT OBJECT. ALL OTHER OBJECTS ARE HANDLED NORMALLY. SO A BOULDER CAN ONLY EXIST IF THERE'S ANOTHER BOULDER NEXT TO IT IN THE ORIGINAL CAVE.  
  
THIS CAN PROBABLY BE ACHIEVED WITH SOME SIMPLE BIT TWIDDLE INSTEAD OF IF-CLAUSE :)

# .font: font.value_1
# .autowrap: false
DARKSTOORM                        2020-07-10 18:19
# .font: font.value_2
# .autowrap: true
THAT'S A 50/50 ;)

# .font: font.value_1
# .autowrap: false
NESDORI                           2020-07-10 18:20
# .font: font.value_2
# .autowrap: true
HMM, NOW THAT I TOOK A CLOSER LOOK THERE'S ONE EXCEPTION TO THIS RULE: THE RIGHTMOST BOULDER SITTING ON TOP OF THE UPPER WALL EXISTS ALTHOUGH THERE'S NO BOULDER AFTER IT IN THE ORIGINAL CAVE. THAT'S THE ONLY EXCEPTION. SO INDEED THIS EFFECT IS ACHIEVED WITH SOME BIT TWIDDLING OR THERE'S A LAYOUT ERROR :)

# .font: font.value_1
# .autowrap: false
DARKSTOORM                        2020-07-10 18:38
# .font: font.value_2
# .autowrap: true
AHHHH! nesdori, GOOD CATCH, THE BOULDER SITTING ON THE WALL SHOULD NOT BE THERE

# .font: font.value_1
# .autowrap: false
DARKSTOORM                        2020-07-10 18:40
# .font: font.value_2
# .autowrap: true
BUT! YOU ARE ALMOST THERE! NO BIT TWIDDLING, THOUGH

# .font: font.value_1
# .autowrap: false
NESDORI                           2020-07-10 18:52
# .font: font.value_2
# .autowrap: true
WELL I DON'T KNOW WHAT TO ADD BECAUSE NOW THAT THE RIGHTMOST WALL BOULDER IS FIXED MY VERBAL RULE CAN BE SUCCESSFULLY APPLIED TO ALL OBJECTS. IF THERE'S SOMETHING ELSE THERE'S NO VISIBLE EXAMPLE OF IT :)

# .font: font.value_1
# .autowrap: false
DARKSTOORM                        2020-07-10 22:18
# .font: font.value_2
# .autowrap: true
TELL ME WHEN IT'S OKAY TO REVEAL, BECAUSE I THINK I WENT TOO FAR WITH THIS ONE :P

# .font: font.value_1
# .autowrap: false
NESDORI                           2020-07-11 09:53
# .font: font.value_2
# .autowrap: true
WELL LIKE I SAID I REALLY DON'T KNOW WHAT IS MISSING FROM MY ANSWER. ARE YOU LOOKING FOR SOME ACTUAL IMPLEMENTATION OF THIS FILLING EFFECT? I'M PRETTY SURE THAT INVOLVES CHECKING THE NEXT OBJECT SOMEHOW. HERE ARE THREE DIFFERENT METHODS TO ACHIEVE THE EFFECT:  
  
1) TWO-PASS METHOD: FIRST FILL THE CAVE NORMALLY. THEN SCAN THE CAVE OBJECTS AGAIN AND IF A BOULDER IS DETECTED, REPLACE IT WITH THE NEXT OBJECT. REPEAT FOR EACH OBJECT.  
  
2) PRE-FETCH METHOD: IF A RANDOM OBJECT IS NON-BOULDER, PLACE IT NORMALLY. IF AN OBJECT IS A BOULDER, CALL THE RNG AGAIN TO FETCH A NEW RANDOM VALUE AND PUT AN OBJECT BASED ON THAT VALUE. IN THAT CASE PROCEED TO THE NEXT POSITION WITHOUT CALLING THE RNG AGAIN. DO THE BOULDER CHECK AGAIN FOR THE LATEST OBJECT AND ACT ACCORDINGLY. REPEAT FOR EACH OBJECT.  
  
3) POST-FIX METHOD: ADD A VARIABLE TELLING THAT WHAT WAS THE PREVIOUS OBJECT WHICH WAS PLACED ON THE CAVE. WHEN A NEW OBJECT IS DETERMINED BY A RANDOM VALUE, CHECK IF THE PREVIOUS OBJECT WAS A BOULDER. IF IT WAS, REPLACE THE PREVIOUSLY PUT BOULDER WITH THE NEW OBJECT.  
  
IF YOU STILL AREN'T SATISFIED, GIVE ME A HINT THAT WHAT ARE YOU LOOKING FOR.. :)

# .font: font.value_1
# .autowrap: false
DARKSTOORM                        2020-07-11 12:05
# .font: font.value_2
# .autowrap: true
AHH, I THINK I DIDN'T UNDERSTAND EARLIER, AND YOU WERE CORRECT, SORRY :D  
  
I HAD A SMALL IDEA FOR A "REROLL" EXPERIMENT, WHERE IF THE ROLLED NUMBER IS IN THE DIAMOND RANGE (0-8), CALL THE RNG AGAIN ON A COPY OF THE SEED1 AND SEED2 AND THEN PROCEED, WHILE LEAVING SEED1/SEED2 UNMODIFIED IN THE NEXT REGULAR CALL. THE RESULT WAS THAT EVERY NEXT PICKED VALUE WAS HIGH ENOUGH SO ONLY ONE DIAMOND WAS PLACED (THE NEXT OBJECT WAS NOT A DIAMOND)... AND IT WAS RIGHT ON THE WALL, SO NO DIAMONDS IN THE CAVE. I CHANGED IT TO CHECK IF IT'S A BOULDER, THEN PICK THE NEXT NUMBER NO MATTER WHAT.  
  
I SHOULD DOUBLE CHECK IT EARLIER, BECAUSE IT'S LIKE YOU SAID: "IF IT'S A BOULDER, REPLACE IT WITH THE NEXT OBJECT - AND NOW IT MAKES THINGS EASIER JUST AFTER COMPARING TWO RESULTS. SO IT WAS ALWAYS (BOULDERS - 1) IN THE PATTERN.  
  
THE INITIAL RESULT WOULD BE: "IF IT'S A BOULDER, LEAVE IT. IF NOT, PICK THE NEXT NUMBER AND PLACE THAT OBJECT".  
  
INITIALLY, THE IDEA WAS CALLED "SECOND CHANCE" WHERE IF THE PICKED NUMBER WAS IN THE 0-8 RANGE, THEN USE IT. IF IT WAS TOO HIGH TO PLACE A DIAMOND, THEN REROLL AGAIN, BUT I THINK THAT WOULD GIVE THE ANSWER AWAY. I CHECKED IT NOW, AND THIS IDEA WON'T WORK WITH ANY OF THE PRNGS, BECAUSE IT WILL ALWAYS RESULT IN DUPLICATES IF THE OBJECT TO THE RIGHT IS A DIAMOND:  
<a href="https://i.imgur.com/AbkUNYM.png" target="external">HTTPS://I.IMGUR.COM/ABKUNYM.PNG</a>