# .font: font.text_2
# .autowrap: false
# .centered: true
cso 200 amoeba television
# .font: font.text_1
by
# .font: font.text_2
dustin
# .centered: false

# .font: font.value_1
# .autowrap: false
DUSTIN                            2021-11-06 12:17
# .font: font.value_2
# .autowrap: true
SHIT, I ACCIDENTLY DELETED THIS CAVE (I WANTED TO DELETE ANOTHER CAVE WHICH WAS UNPUBLISHED)! SORRY FOR YOUR SOLUTION, darkstoorm!  
  
NOT A JUBILEE THIS TIME, BUT A SPECIALITY ABOUT THE NUMBER 200 IN BD ;)  
AS USUAL IN AMOEBA CSO CAVES, LUCK IS REQUIRED IN ADDITION TO THE RIGHT STRATEGY!

# .font: font.value_1
# .autowrap: false
DUSTIN                            2021-11-06 12:18
# .font: font.value_2
# .autowrap: true
ALRIGHT, NOW I DELTED THE CAVE I WANTED TO DELETE :D

# .font: font.value_1
# .autowrap: false
DARKSTOORM                        2021-11-06 12:20
# .font: font.value_2
# .autowrap: true
I THOUGHT THERE WAS A CAVE FIX :D LET'S TRY AGAIN!

# .font: font.value_1
# .autowrap: false
DUSTIN                            2021-11-06 12:27
# .font: font.value_2
# .autowrap: true
SUCCESSFUL WITH 7 ATTEMPTS, YES! :D

# .font: font.value_1
# .autowrap: false
DUSTIN                            2021-11-06 12:29
# .font: font.value_2
# .autowrap: true
I MADE A QUICK TEST CAVE TO BE 100 PERCENT SURE THAT THE INTENDED SOLUTION IS THE ONLY ONE. THEN I WANTED TO DELETE THE TEST CAVE AGAIN BUT I HIT THE PUBLISHED CAVE XD

# .font: font.value_1
# .autowrap: false
DUSTIN                            2021-11-11 15:14
# .font: font.value_2
# .autowrap: true
SOLUTION FREE! IT'S BASED ON THE EXACT AMOEBA RULES (I THINK THEY SLIGHTLY DIFFER FROM ENGINE TO ENGINE SO THIS CAVE WOULD PROBABLY NOT WORK THE SAME WAY ELSEWHERE):  
  
THE FOLLOWING AMOEBA RULES FOR krissz'S ENGINE ARE BASED ON EXPERIMENTS AND CONCLUSIONS AND MIGHT NOT BE ENTIRELY PRECISE.  
  
1. EACH FRAME DURING THE CAVESCAN, AN AMOEBA COUNTER RUNS SIIMULTANEOUSELY AND ALSO COUNTS NEWLY GROWN AMOEBAS IMMEDIATELY. AS SOON AS THE COUNTER REACHES 200, THE "OVERGROWN" FLAG IS SET AND NEXT FRAME, EVERY AMOEBA IS CONVERTED INTO |.  
  
2. IF A | ACTIVATES A MAGIC WALL, THE "STOP AMOEBA" FLAG IS SET IMMEDIATELY. IN THIS CASE, THE ENGINE DOES NOT WAIT WITH THE CONVERSION UNTIL NEXT FRAME. EVERY AMOEBA WHICH IS SCANNED AFTER THE ACTIVATING | IS IMMEDIATELY CONVERTED. THIS MEANS THE CONVERSION CAN BE SPLIT OVER TWO FRAMES!  
  
3. ONCE THE "OVERGROWN" FLAG IS SET, IT CAN'T BE OVERWRITTEN BY THE "STOP AMOEBA" FLAG ANYMORE.  
  
WHAT DOES THIS MEAN FOR THE SOLUTION?  
  
IF ^ JUST WAITS, THE AMOEBY WILL REACH 200 AND RULE 1 WILL CONVERT IT INTO |||. SO IT'S CLEAR THAT THE AMOEBA MUST BE STOPPED WITH ONE OF THE MAGIC WALLS, BUT THE AMOEBA MUST STILL REACH 200 PIECES!  
  
SO WE HAVE TWO CONDITIONS WHICH SEEM TO CONTRADICT EACH OTHER AT FIRST SIGHT:  
  
C1: WHEN THE MAGIC WALL IS ACTIVATED, THE AMOEBA COUNT MUST ALREADY BE 200. THIS IS BECAUSE OF RULE 2 - THE "STOP AMOEBA" FLAG IS SET IMMEDIATELY SO NO MORE AMOEBAS CAN GROW AFTER THE MWALL IS ACTIVATED.  
  
C2: WHEN THE MAGIC WALL IS ACTIVATED, THE AMOEBA COUNTER MUST STILL BE BELOW 200. OTHERWISE RULE 1 WOULD HAVE SET THE "OVERGROWN" FLAG BEFORE AND RULE 3 WOULD NOT ALLOW AN OVERWRITING OF THIS FLAG.  
  
THERE IS ONE WAY TO SOLVE THE SEEMINGLY CONTRADICTORY CONDITIONS C1 AND C2: THE LOWER-LEFT MAGIC WALL MUST BE USED BECAUSE THEN THE ACTIVATING | IS SCANNED AFTER THE FIRST 190 AMOEBAS BUT BEFORE THE LAST 10. ONE FRAME BEFORE THE ACTIVATION, THE AMOEBA COUNT IS STILL 199 OR LESS. THEN IN THE FRAME OF ACTIVATION, THE LAST AMOEBA(S) MUST GROW (THIS REQUIRES LUCK). NOW WHEN THE ACTIVATING | IS SCANNED, THE AMOEBA COUNTER IS ONLY AT 190! SO THE "STOP AMOEBA" FLAG IS SET BEFORE THE LAST 10 AMOEBAS ARE SCANNED. THIS WAY, THE AMOEBA COUNTER NEVER REACHES 200! :D

# .font: font.value_1
# .autowrap: false
ALTERMAVEN                        2021-11-14 10:59
# .font: font.value_2
# .autowrap: true
CLEVER DEDUCTION, dustin! MY INITIAL UNDERSTANDING WAS THAT THE SCAN ORDER USING THE LOWER LEFT MAGIC WALL TOOK PRECEDENCE OVER THE AMOEBA REACHING 200.  
  
BUT I HAVE NEVER ACCOUNTED FOR THE CASE THAT IT TOOK A LOOK AT EVERYTHING BEFORE THE ORDER AND SEEING "OH, THIS IS 190, IT'S NOT 200, SO I CAN CONVERT). IT DOES MAKE FOR AN INTERESTING CONUNDRUM REGARDING THAT ONE BIZARRE EXCEPTION TO THE RULE.  
  
HOWEVER, CONSIDERING HOW THE RNG IS ROLLING THE MOMENT THE CAVE BEGINS AND IT DEPENDS ON OTHER VARIOUS FACTORS (INCLUDING SYSTEM TIMER!), I DO NOT THINK THIS CAN BE EMPLOYED IN A SAFE MANNER AS A GIMMICK FOR ANY CAVE...

# .font: font.value_1
# .autowrap: false
ALTERMAVEN                        2021-11-14 11:07
# .font: font.value_2
# .autowrap: true
THERE ARE SOME OTHER NUANCES REGARDING AMOEBA RNG AND HOW IT IS SEEDED, BUT A FEW OF THESE INVOLVE PRIOR ACTIONS IN A CAVE SET, AS WELL AS WHAT HAS HAPPENED DURING THE LAST SCAN.  
  
AN INDIVIDUAL PERFORMED A TOOL-ASSISTED SPEEDRUN OF C64 BOULDER DASH, AND CAVE G -- WHERE AMOEBA IS TRAPPED -- WAS THE AUTHOR'S BIGGEST HEADACHE IN REGARDS TO CONSTRAINING THE RNG TO BE AT THE RIGHT PLACE AT THE RIGHT TIME.  
  
TO PULL IT SHORT: THE NUANCES WERE SO BROAD, HE HAD TO WRITE A PROGRAMME TO BRUTE FORCE THE IDEAL SCENARIO WHERE HE CAN ESTABLISH THE REQUISITE \'S THAT REQUIRED FULLY-COOPERATIVE AMOEBA. THE AUTHOR REALISED THAT WHAT HAPPENED BEFORE CAVE G INFLUENCED THE RNG IN CAVE G, SO HE ESSENTIALLY HAD TO RECREATE THE SCENARIO INVOLVING CAVES PAST JUST SO HE COULD GET THE RIGHT RNG.  
  
THE TL;DR: OF THIS IS AS SUCH -- AMOEBA RNG IS SO ELABORATE, YOU CAN'T REALLY CONSTRAIN IT TO GENERATE TWO EQUAL SCENARIOS ON A WHIM.

# .font: font.value_1
# .autowrap: false
NESDORI                           2021-11-14 12:48
# .font: font.value_2
# .autowrap: true
altermaven, THE RNG THE ORIGINAL BOULDER DASH USES FOR BOULDER PUSHING AND AMOEBAS IS BASED ON THE CIA1 AND CIA2 TIMERS AND THE STATE OF THE CARRY FLAG AND THERE ARE NO OTHER SEEDS. THIS IS THE FULL ASSEMBLY CODE OF THE BD1 TIMER BASED RNG:  
  
TIMEBASEDRANDOMNUMBER:  
6AD0   AD 04 DC   LDA CIA1_TIMERALO  
6AD3   4D 05 DC   EOR CIA1_TIMERAHI  
6AD6   4D 04 DD   EOR CIA2_TIMERALO  
6AD9   6D 05 DD   ADC CIA2_TIMERAHI  
6ADC   4D 06 DD   EOR CIA2_TIMERBLO  
6ADF   4D 07 DD   EOR CIA2_TIMERBHI  
6AE2   60         RTS  
  
SO EVERYTHING THE USER DOES SINCE HE/SHE TURNS THE COMPUTER ON AFFECTS THE STATE OF THE CIA TIMERS. EVEN BEFORE LOADING AND RUNNING THE GAME. IT'S INDEED IS POSSIBLE TO DO TOOL ASSISTED RUN WITH AN EMULATOR WHERE YOU CAN CONTROL THE AMOEBA TO SOME EXTENT. EACH SCAN TAKES DIFFERENT AMOUNT OF TIME DEPENDING ON WHAT OBJECTS THERE ARE ON THE CAVE AND PLAYING SOUNDS AND SCROLLING ALSO OF COURSE AFFECTS THE TIMING. IT'S VERY HARD TO PLAN THE ACTIONS BEFOREHAND TO GET A CERTAIN AMOEBA GROWTH RESULT BECAUSE YOU HAVE TO DO CYCLE EXACT ANALYSIS OF BOULDER DASH ENGINE AND C64 HARDWARE WORKINGS. BUT IT'S POSSIBLE TO JUST TRY ACTIONS BY BRUTE FORCE UNTIL YOU ARE SATISFIED WITH THE AMOEBA GROWTH. I THINK THIS IS WHAT THE PLAYER YOU MENTIONED DID.

# .font: font.value_1
# .autowrap: false
ALTERMAVEN                        2021-11-14 21:10
# .font: font.value_2
# .autowrap: true
HM, THAT'S VERY ENLIGHTENING! HAVING THAT KNOWLEDGE WILL MOST CERTAINLY ALLOW THE PERSON TO COMMIT THE TAS. WHAT I WAS REFERRING TO IS THAT IT'S NOT REALISTICALLY IDEAL TO COERCE A SITUATION WHERE TWO RNG MOMENTS CAN HAPPEN AT THE SAME TIME (UNLESS, OF COURSE, YOU HAVE EMULATION, WHICH IN THIS CASE THE TIMERS AND MEMORY VALUES ARE PRESERVED IN A FREEZE-FRAME, BUT THAT'S NOT REALISTIC NOW, IS IT?)

# .font: font.value_1
# .autowrap: false
DUSTIN                            2021-11-19 18:35
# .font: font.value_2
# .autowrap: true
OH, I SHOULD DEFINITELY CHECK THE "LAST COMMENTED CAVES" DATABASE MORE OFTEN. I HAVE A FEELING THAT I THOUGHT THIS A FEW TIMES ALREADY :D  
  
JUST WATCHED THE BD1 L5 TAS ON YOUTUBE. GREAT FUN! :D