Timeline for Make your language *mostly* unusable! (Cops' thread)
Current License: CC BY-SA 3.0
20 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 19, 2017 at 15:02 | comment | added | user2357112 |
@ValueInk: Ah, crap. Oh well. I only really used it to get 0, which could be produced other ways. (Nice len workaround.)
|
|
Jul 19, 2017 at 13:39 | history | edited | Wheat Wizard♦ | CC BY-SA 3.0 |
added 2998 characters in body
|
Jul 19, 2017 at 10:03 | comment | added | xnor | Cracked? | |
Jul 19, 2017 at 9:42 | comment | added | Blender |
You can construct arbitrary numbers by obtaining the string representations of any of those digits and then concatenating them: -275 == int(`()`[int():int()].join(['-', '2', '7', '5']))
|
|
Jul 19, 2017 at 9:24 | comment | added | Blender | Here are all the digits 0-9: pastebin.com/aaUd42fc | |
Jul 19, 2017 at 9:16 | comment | added | Value Ink |
The length of any string can be achieved with (your string).rfind(`()`[int():int()])
|
|
Jul 19, 2017 at 8:10 | comment | added | Value Ink |
@user2357112 those are some really nice notes but - is disallowed...
|
|
Jul 19, 2017 at 7:35 | comment | added | user2357112 | I'm going to bed. Here are some notes that might be useful for other people who want to crack this. | |
Jul 19, 2017 at 6:44 | comment | added | user2357112 |
oh, whoops, I forgot I'd already come up with a use for the j - join , which is a usable substitute for + for string concatenation.
|
|
Jul 19, 2017 at 6:31 | comment | added | Wheat Wizard♦ |
@user2357112 I will tell you that my intended solution uses all of these characters, no red herrings. Perhaps not all of them are needed but I've tried to minimize the character set to the best of my abilities. However not all the functions you have mentioned are used in my solution, for example I don't use ord . Hope thats not too much of a hint, but I want to keep it fun.
|
|
Jul 19, 2017 at 6:28 | comment | added | user2357112 |
We've got for and in , so we have list comprehensions and genexps. No next or iter , though. I wonder how many of these characters are red herrings. I haven't come up with a use for the j ...
|
|
Jul 19, 2017 at 6:20 | comment | added | user2357112 |
All right, we've got find , min , ord , int , repr backticks, argument separators, method calls... we can get a lot of numbers by putting together repr backticks, ord , & , and ~ ... we can add individual digits by slicing the right strings...
|
|
Jul 19, 2017 at 5:29 | comment | added | Wheat Wizard♦ |
@ATaco Its the beginning of a lambda definition, add some arguments and a colon, r,rr: followed by the code will do the trick. The `\` is just a line continuation character.
|
|
Jul 19, 2017 at 5:27 | comment | added | ATaco | I was going to try to crack but I don't even know how to make it not crash ;-; | |
Jul 19, 2017 at 5:26 | comment | added | Wheat Wizard♦ | @ATaco Here's the message he said he would update it when he got the chance. | |
Jul 19, 2017 at 5:24 | comment | added | ATaco | Rules explicitly state otherwise. "This code is not allowed to crash or exit." | |
Jul 19, 2017 at 5:23 | comment | added | Wheat Wizard♦ | @ATaco I believe this was discussed in chat and it was decided that this was ok. | |
Jul 19, 2017 at 5:22 | comment | added | ATaco | This snippet seems to error on its own. | |
Jul 19, 2017 at 4:49 | history | edited | Wheat Wizard♦ | CC BY-SA 3.0 |
added 45 characters in body
|
Jul 19, 2017 at 4:21 | history | answered | Wheat Wizard♦ | CC BY-SA 3.0 |