Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
For the size, an easy and efficient approach is just to have a bot write the password, duplicate (from the start with a new password to write), and try to get in the room. If it gets in the room, kill the other bot and gather the data . With this approach, I managed to craft a solution in 19 lines
I'll second that this is great advice. I struggled with this puzzle a lot until I followed that advice, and suddenly it made it much easier.
Then i remembered that SWIZ exists. 2 loops running SWIZ, one from 999 down and one from 000 up so that every single cycle is used to input a number. All you need is a replication mechanism to test that door.
If you do SWIZ X abcd T, the first digit of T is the digit number a of X, the 2nd digit of T is the digit number b of X, etc.
For exemple,
SWIZZ 6789 4321 T => T = 9876
SWIZZ 6789 4444 T => T = 9999
SWIZZ 6789 1212 T => T = 6767
But you can also use less than 4 digits in the mask :
SWIZZ 6789 14 T => T = 69
SWIZZ 6789 3 T => T = 8
I think I'm going to escape back into the simple world of Yakuza, where the only math that matters is how many times I punch a man.
EDIT:
Oh.
Nevermind.
I think I get it.
EDIT 2:
I got it.
This game is great.
Thanks, everybody.
8756 IN
0003 MASK
0007 OUT
0 means don't copy any digit but just 0.
SWIZ ABCD 4321 -> ABCD
SWIZ ABCD 1234 -> DCBA
SWIZ ABCD 3333 -> BBBB
SWIZ ABCD 0004 -> A
SWIZ ABCD 4004 -> A00A
Swiz cuts up the 1st argument as if it were an array[4], and each digit of the 2nd argument lays down that first, second, third, or fourth digit. Or a zero, if you like.
Since I didn't use it I'm not sure of the final solution using swz but I was trying to loop 1-999 and then pull the digits out for the pwd.
I end up looping though the numbers the same way but pulling digits out with DIVI & MODI
code was 26, cycles < 8000 (not so great)
Seeing this thread I might go and try swiz.
Lost a lot of cycles on REPL'ing an exa to test the door to see if the code was correct. Did anyone have a better way to do that?