29
\$\begingroup\$

Inspired/mostly copied but I don't think it's a dupe. Also Inspired.

In this challenge, you will create polyglots that include all languages from previous answers, and another language which you won't share and others must guess.

The first language prints 1, the second prints 2, etcetera.

For example, if the first answer was this:

print(1)

You could crack it as Python 3 (or numerous other languages), then you could write another answer that prints 2 in, say, Befunge-93:

2<3 and print(1)#@.2

Try it online!

Then, the next person to answer would first have to figure out that this was written in Befunge-93 before posting an answer that printed 1 in Python 3, 2 in Befunge-93 and 3 in a language of their choice. Feel free to share a crack if you don't want to post an answer.

To keep this challenge fluid, you must reveal your language if it has been uncracked for a week, at which point anyone can post another answer.

Please, be nice and try to post answers in languages which can be easily polyglotted.

Rules

  • The criteria for a valid programming language are the same as those of The Programming Language Quiz, Mark II - Cops:

  • Each answer must run in less than a minute on a reasonable PC.

  • Different versions of a language / languages with different flags / whatever are valid as long as you can get them to behave differently. However, flags must be revealed to avoid obscure combinations.

  • Cracking a submission consists of finding any programming language that prints the correct result, not just the intended one. If a submission is run in any language that was not declared or found to work, there are no requirements to do anything, and future answers must be valid in that language.

I/O clarifications

The program must output a decimal integer, optionally as a float with a .0 afterwards. Any reasonable amount of leading/trailing whitespace is acceptable, as is stuff unavoidably printed by the interpreter, or formatting for the integer. Anything else is not.

Ending with an error is allowed as long as that error is printed to stderr, and not standard output - it can't be printed with the number.

Scoring

The person with the most answers wins.

A chatroom's been created for this challenge.

\$\endgroup\$

21 Answers 21

9
\$\begingroup\$

9. Deadfish~, 116 bytes, cracked by pxeger

The previous answer was in Runic Enchantments, but I don't have enough reputation to comment yet.

4+0#  @ iiiiiiiiio
print(8-(2*5-3)+(1/2)*10)#+++++P #++++++++++++++++++++++++++++++++++++++++++++++++++.
0+0#  ^
5_3

Try it online in:

\$\endgroup\$
5
  • \$\begingroup\$ Welcome to Code Golf, and nice first answer! I've edited in a byte count, and links to run your program online in all the languages revealed so far. \$\endgroup\$
    – pxeger
    May 30, 2022 at 16:02
  • \$\begingroup\$ Welcome to CGCC! Runic Enchantments was indeed the intended answer, so well done! :) \$\endgroup\$ May 30, 2022 at 16:03
  • \$\begingroup\$ @KevinCruijssen Nice! I accidently found that just scrolling through TIO! I was shocked! Thought it was ><> or something at first. \$\endgroup\$
    – 00Her0
    May 30, 2022 at 16:06
  • \$\begingroup\$ Cracked \$\endgroup\$
    – pxeger
    May 30, 2022 at 16:36
  • \$\begingroup\$ @pxeger Well done, Deadfish~ was indeed my intended language. I would have obfuscated it more (should've used the 'i' in 'print'!) but I mostly just wanted to crack the Runic Enchantments one. \$\endgroup\$
    – 00Her0
    May 30, 2022 at 17:59
7
\$\begingroup\$

11. Neutrino, 144 bytes

4+0#  @ iiiiiiiiio
print(8-(2*5-3)+(1/2)*10+8-4*(2147483647*2%3))#+++++P #++++++++++++++++++++++++++++++++++++++++++++++++++.
0+0#  ^
-1*-10+4_3

Try it online in Ruby, Jelly, Vyxal, rSNBATWPL, Headass, Python 3, brainfuck, Runic Enchantments, Deadfish~. FISHQ9+. I created this interpreter to make testing easier for others, but it also works with the Kotlin implementation that pxeger's answer works with.

Pxeger's post was (not intentionally) in FISHQ9+, using the kotlin interpreter .jar file supplied on the esolangs page, run with java -jar. When running the REPL and entering the code:

######@######## downloads % java -jar FISHQ9P.jar
>> 4+0#  @ iiiiiiiiio
print(8-(2*5-3)+(1/2)*10+8-4*(2147483647*2%3))#+++++P #++++++++++++++++++++++++++++++++++++++++++++++++++.
0+0#  ^
5_310

It prints 10 (without a leading newline) after the code. To avoid making testing hell for everyone in future, I will shortly be adding a FISHQ9+ interpreter to DSO.

This works because the iiiiiiiiio from answer #9 prints 9, but FISHQ9+ merges HQ9+'s + command in which increments it one more time to 10 before printing. Nothing else is printed.

\$\endgroup\$
3
  • \$\begingroup\$ And they said hq9+ derivatives couldn't be useful.......... \$\endgroup\$ Jun 1, 2022 at 1:53
  • \$\begingroup\$ Cracked, but I'm not gonna post the next answer. \$\endgroup\$
    – Aiden Chow
    Jun 1, 2022 at 3:14
  • \$\begingroup\$ Ok never mind I posted the next answer. \$\endgroup\$
    – Aiden Chow
    Jun 1, 2022 at 4:41
7
\$\begingroup\$

10. FISHQ9+, 137 bytes, cracked by accident

4+0#  @ iiiiiiiiio
print(8-(2*5-3)+(1/2)*10+8-4*(2147483647*2%3))#+++++P #++++++++++++++++++++++++++++++++++++++++++++++++++.
0+0#  ^
5_3

The previous answer works in Deadfish~.

Try it online in:


My intended crack was Crystal before version 0.31.0, which is when Crystal got integer overflow checking by default.

This also works with the version of Crystal on TIO, with -D disable_overflow: Try it online!, but I didn't want to reveal that flag (which the rules would have required), so I chose to use an old version of Crystal instead.

(this flag appears to have been removed entirely in the latest versions of Crystal: Attempt This Online!)

\$\endgroup\$
3
  • 2
    \$\begingroup\$ Wow that's some clever/cursed operator precedence. I suspect we're looking for a lang with 32-bit ints and print, and numbers with underscores obviously. Of course, it could just be a red herring... \$\endgroup\$
    – emanresu A
    May 30, 2022 at 19:37
  • \$\begingroup\$ Cracked! \$\endgroup\$
    – emanresu A
    May 31, 2022 at 23:55
  • \$\begingroup\$ Yes, my username is accident lol \$\endgroup\$
    – emanresu A
    Jun 1, 2022 at 10:08
6
\$\begingroup\$

7. brainfuck, Exactly 100 Bytes, cracked by aiden chow and continued by Kevin Cruijssen

The last answer was Python 3.

print(8 - (2 * 5 - 3) + (1/2) * 10)#+++++P #+++++++++++++++++++++++++++++++++++++++++++++++++++.
5_3
\$\endgroup\$
3
  • \$\begingroup\$ This doesn't seem to run in Jelly \$\endgroup\$ May 30, 2022 at 3:59
  • \$\begingroup\$ @Samathingamajig That's been fixed \$\endgroup\$
    – emanresu A
    May 30, 2022 at 4:30
  • 1
    \$\begingroup\$ Cracked, but I'm not going to post the next answer. \$\endgroup\$
    – Aiden Chow
    May 30, 2022 at 4:46
5
\$\begingroup\$

5. Headass, 34 bytes, cracked by emanresu A

print(8 - (2 * 5 - 3))#++++++P
5_3

Previous answer was in Radvylf Should Not Be Allowed To Write Programming Languages

Thanks emanresu A for adding my language to your web-site :D

\$\endgroup\$
1
5
\$\begingroup\$

1. Ruby, 9 bytes, cracked by caird coinheringaahing

$><<$$/$$

The answer to start things off. Should be fairly easy.

\$\endgroup\$
1
5
\$\begingroup\$

4. rSNBATWPL, 26 bytes

print(8 - (2 * 5 - 3))
5_3

The previous answer was in Vyxal

\$\endgroup\$
1
  • \$\begingroup\$ Ayy this is rSN isn't it \$\endgroup\$ May 29, 2022 at 23:18
5
\$\begingroup\$

12. BitCycle, 170 bytes, cracked by Dingus

4+0#a /z@ iiiiiiiiio
print(8-(2*5-3)+(1/2)*10+1+1+1+1+1+1+1+1+1+1+1-1-1-1-1-1-1-1-1-1-1-1)#!+++++P #++++++++++++++++++++++++++++++++++++++++++++++++++.
0+0#a ^
-1*-10+4_3

Try It Online in Ruby, Jelly, Vyxal, rSNBATWPL, Headass, Python 3, Brainfuck, Runic Enchantments, Deadfish~, FishHQ9+, Neutrino

The code is ran under the -u flag. Very easy, definitely gonna get cracked within a few minutes.

\$\endgroup\$
4
  • \$\begingroup\$ I was just about to post #12 lol \$\endgroup\$
    – Seth
    Jun 1, 2022 at 5:01
  • \$\begingroup\$ BitCycle \$\endgroup\$
    – Dingus
    Jun 1, 2022 at 5:50
  • \$\begingroup\$ @Dingus Yep, that's the intended solution! \$\endgroup\$
    – Aiden Chow
    Jun 1, 2022 at 5:50
  • \$\begingroup\$ @Seth Good luck, this has been cracked so now you can extend it fairly easily. Join us in the chatroom if you need help \$\endgroup\$
    – emanresu A
    Jun 1, 2022 at 6:10
4
\$\begingroup\$

2. Jelly, 11 bytes, cracked by Steffan

$><<$$/$$
2

The previous answer was written in Ruby:

Try it online!

\$\endgroup\$
3
  • \$\begingroup\$ This is Jelly, I'll post a new one in a min \$\endgroup\$
    – naffetS
    May 29, 2022 at 22:48
  • 1
    \$\begingroup\$ @Steffan Missed oppurtunity to use Vyxal, smh my head \$\endgroup\$
    – emanresu A
    May 29, 2022 at 22:51
  • \$\begingroup\$ posted crack \$\endgroup\$
    – naffetS
    May 29, 2022 at 23:02
4
\$\begingroup\$

8. Runic Enchantments, 105 bytes, cracked by 00Her0

4+0#  @
print(8-(2*5-3)+(1/2)*10)#+++++P #++++++++++++++++++++++++++++++++++++++++++++++++++.
0+0#  ^
5_3

Since @AidenChow cracks answers without posting a new one, I took the liberty to post the next in line.

  1. Try it online in Ruby.
  2. Try it online in Jelly.
  3. Try it online in Vyxal.
  4. Try it online in Radvylf Should Not Be Allowed To Write Programming Languages.
  5. Try it online in Headass.
  6. Try it online in Python 3.
  7. Try it online in brainfuck.
\$\endgroup\$
0
4
\$\begingroup\$

14. Vanilla TeX (initex), 256 bytes, mostly cracked by emanresu A

1#+iiiiiiiiiokh-\catcode`\#=6\font\m=cmr10\m
14#\end;
4+0#a /z@ MoOMoOMoOMoOMoOMoOMoO
print(8-(2*5-3)+(1/2)*10+1+1+1+1+1+1+1+1+1+1+1-1-1-1-1-1-1-1-1-1-1-1)#!+++++P #++++++++++++++++++++++++++++++++++++++++++++++++++.
0+0#a ^MoOMoOMoOMoOMoOMoOOOM
-1*-10+4_3

This is now available on ATO!

You can run this on ATO here.

Try it online in:

  1. Ruby
  2. Jelly
  3. Vyxal
  4. rSNBATWPL
  5. Heada**
  6. Python 3
  7. Brainf***
  8. Runic Enchantments
  9. Deadfish~
  10. FISHQ9+
  11. Neutrino
  12. BitCycle
  13. COW
\$\endgroup\$
7
  • \$\begingroup\$ I feel like this is some form of TeX, but I can't figure out how to run it \$\endgroup\$
    – emanresu A
    Jun 2, 2022 at 2:23
  • 2
    \$\begingroup\$ And generally lack of input is assumed, so I'd say the flag has to be revealed. \$\endgroup\$
    – emanresu A
    Jun 2, 2022 at 2:53
  • \$\begingroup\$ Agree with a username. \$\endgroup\$ Jun 2, 2022 at 2:56
  • \$\begingroup\$ THIS CAN ALSO BE KEG!!! LINK \$\endgroup\$ Jun 2, 2022 at 7:03
  • \$\begingroup\$ @Nobody Keg outputs 1 instead of 14, though. In your link you've modified the first line. \$\endgroup\$ Jun 2, 2022 at 10:46
4
\$\begingroup\$

21. PingPong, 294 bytes, cracked by Aiden Chow

1# 2:0+:@ iiiiiiiiiokh \#+++++++++++++++O \font\m=cmr10\m14\end ;n+3e
4+0# MoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOOOM h$1 o$ h$8 o$
print(8-(2*5-3)+(1/2)*10+1+1+1+1+1+1+1+1+1+1+1-1-1-1-1-1-1-1-1-1-1-1) #!+++++P #+++++++++++++++++++++++++++++++++.-#19$#&
0+0#;print{4} >8z@ S5^7^MOAOF
-1*-10+4_3

Try it online!

That's right, the code didn't change at all. Lol

Try it online in Ruby Jelly Vyxal rSN Heada** Python 3 Brainf*** Runic Enchantments Deadfish~ FISHQ9+ Neutrino BitCycle COW TeX Brainf***+ RunR ><> xEec Versert

\$\endgroup\$
4
  • \$\begingroup\$ … what … how … nice :p \$\endgroup\$
    – emanresu A
    Jul 18, 2022 at 9:02
  • \$\begingroup\$ It's been uncracked for more than a week by this point. I'm curious to see what the lang is :P \$\endgroup\$
    – Aiden Chow
    Jul 27, 2022 at 8:31
  • \$\begingroup\$ Oh wait... I just found the lang, holy shit. I literally came across this answer like 5 minutes ago, no joke. \$\endgroup\$
    – Aiden Chow
    Jul 27, 2022 at 8:33
  • 1
    \$\begingroup\$ Figured out how it works. Relevant code is: 1# 2:0+:@. 1 pushes 1 to the stack. # skips the next instruction, which is the space (space is actually a no-op, so the # didn't actually do anything). 2 pushes 2 to the stack. : prints the number at the top of the stack without newlines (in this case, the 2). 0 pushes 0 to the stack. + adds the top two numbers on the stack, so 1+0 = 1 is left on the stack. : prints the 1. @ terminates the code. \$\endgroup\$
    – Aiden Chow
    Jul 27, 2022 at 8:54
3
\$\begingroup\$

3. Vyxal, 15 bytes, cracked in literally 30 seconds by emanresu A

$><<$$/$$
2+3_3

The previous answer was written in Jelly.

Try it online in Jelly.

Try it online in Ruby.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Vyxal \$\endgroup\$
    – emanresu A
    May 29, 2022 at 23:03
  • \$\begingroup\$ Don't mark as cracked until another answer's posted \$\endgroup\$
    – emanresu A
    May 29, 2022 at 23:03
3
\$\begingroup\$

6. Python 3, 46 bytes, cracked by aiden chow and continued by Nobody

print(8 - (2 * 5 - 3) + (1/2) * 10)#+++++P
5_3

The previous answer was in Headass.

For the sake of everyone else doing this:

Try it online in Ruby!
Try it online in Jelly!
Try it Online in Vyxal!
Try It Online in rSNBATWPL!
Try It Online in Headass!

\$\endgroup\$
6
  • \$\begingroup\$ Cracked, but I'm not going to post a new answer. \$\endgroup\$
    – Aiden Chow
    May 30, 2022 at 1:41
  • \$\begingroup\$ It doesn't seem like your Headass code works according that link \$\endgroup\$ May 30, 2022 at 4:01
  • \$\begingroup\$ @Samathingamajig Give it a couple of seconds to load and check for errors in the console. \$\endgroup\$
    – emanresu A
    May 30, 2022 at 4:21
  • \$\begingroup\$ @emanresuA I'm getting ReferenceError: code is not defined when I run the code, with no errors in my browser console. Does the code work only on certain browsers? \$\endgroup\$
    – Aiden Chow
    May 30, 2022 at 4:48
  • \$\begingroup\$ @AidenChow Frick. That's probably an interpreter bug :P will see what I can do \$\endgroup\$
    – emanresu A
    May 30, 2022 at 5:51
3
\$\begingroup\$

16. RunR, 286 bytes

1#+iiiiiiiiiokh\#+++++++++++++++O\>#\catcode`\#=6\font\m=cmr10\m
14#\end;
4+0#a /z@ MoOMoOMoOMoOMoOMoOMoO
print(8-(2*5-3)+(1/2)*10+1+1+1+1+1+1+1+1+1+1+1-1-1-1-1-1-1-1-1-1-1-1)#!+++++P #++++++++++++++++++++++++++++++++++++++++++++++++++.
0+0#a ^MoOMoOMoOMoOMoOMoOOOMS5^7^MOAOF
-1*-10+4_3
\$\endgroup\$
0
3
\$\begingroup\$

17. ><>, 329 bytes, cracked by stasoid

1#+iiiiiiiiiokh\#+++++++++++++++O\>#\catcode`\#=6\font\m=cmr10\m%\3e
14#\end;                                   ';
4+0#a /z@ MoOMoOMoOMoOMoOMoOMoO            'n
print(8-(2*5-3)+(1/2)*10+1+1+1+1+1+1+1+1+1+1+1-1-1-1-1-1-1-1-1-1-1-1)#!+++++P #++++++++++++++++++++++++++++++++++++++++++++++++++.
0+0#a ^MoOMoOMoOMoOMoOMoOOOMS5^7^MOAOF      \                    \
-1*-10+4_3

Try it online in Ruby Jelly Vyxal rSN Heada** Python 3 Brainf*** Runic Enchantments Deadfish~ FISHQ9+ Neutrino BitCycle COW TeX Brainf***+ RunR

\$\endgroup\$
2
  • \$\begingroup\$ This is broken for BF+, one minute please \$\endgroup\$
    – 00Her0
    Jun 14, 2022 at 21:27
  • \$\begingroup\$ Fixed it, works now! \$\endgroup\$
    – 00Her0
    Jun 14, 2022 at 23:01
3
\$\begingroup\$

18. xEec, 271 bytes, cracked by 00Her0

1#+iiiiiiiiiokh \#+++++++++++++++O \font\m=cmr10\m14\end ;n+3e
4+0# MoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOOOM
print(8-(2*5-3)+(1/2)*10+1+1+1+1+1+1+1+1+1+1+1-1-1-1-1-1-1-1-1-1-1-1) #!+++++P #+++++++++++++++++++++++++++++++++.
0+0# >8z@ S5^7^MOAOF h$1 o$ h$8 o$
-1*-10+4_3

Previous answer works in ><>.

\$\endgroup\$
1
  • \$\begingroup\$ This works in xEec tio.run/##q0hNTf7/…. I need some time to post next answer please. \$\endgroup\$
    – 00Her0
    Jun 16, 2022 at 5:08
3
\$\begingroup\$

20. Versert, 294 bytes

1# 2:0+:@ iiiiiiiiiokh \#+++++++++++++++O \font\m=cmr10\m14\end ;n+3e
4+0# MoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOOOM h$1 o$ h$8 o$
print(8-(2*5-3)+(1/2)*10+1+1+1+1+1+1+1+1+1+1+1-1-1-1-1-1-1-1-1-1-1-1) #!+++++P #+++++++++++++++++++++++++++++++++.-#19$#&
0+0#;print{4} >8z@ S5^7^MOAOF
-1*-10+4_3

#19 is AsciiDots.

Fixed rSNBATWPL code according to this.

\$\endgroup\$
1
  • \$\begingroup\$ Got around to pushing it \$\endgroup\$
    – emanresu A
    Jun 25, 2022 at 2:46
2
\$\begingroup\$

13. COW 214 bytes, cracked by Dingus

4+0#a /z@ iiiiiiiiiokhMoOMoOMoOMoOMoOMoOMoO
print(8-(2*5-3)+(1/2)*10+1+1+1+1+1+1+1+1+1+1+1-1-1-1-1-1-1-1-1-1-1-1)#!+++++P #++++++++++++++++++++++++++++++++++++++++++++++++++.
0+0#a ^MoOMoOMoOMoOMoOMoOOOM
-1*-10+4_3

Pretty easy, should get cracked fast. I don't know enough languages :/. Try it online in: Ruby Jelly Vyxal rSNBATWPL Heada** Python 3 Brainf*** Runic Enchantments Deadfish~ FISHQ9+ Neutrino BitCycle

\$\endgroup\$
2
  • 1
    \$\begingroup\$ COW \$\endgroup\$
    – Dingus
    Jun 1, 2022 at 22:39
  • \$\begingroup\$ 20 mins. Nice one! It was pretty obvious though... Mostly just wanted to get a funny language in here. \$\endgroup\$
    – 00Her0
    Jun 1, 2022 at 22:56
2
\$\begingroup\$

15. BrainF*ck+, 430 bytes, Should Be Very Easily Cracked By whqwert

1#+iiiiiiiiiokh-\ #+++++++++++++++O\ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>14#+iiiiiiiiiokh-\catcode`\#=6\font\m=cmr10\m
14#\end;
4+0#a /z@ MoOMoOMoOMoOMoOMoOMoO
print(8-(2*5-3)+(1/2)*10+1+1+1+1+1+1+1+1+1+1+1-1-1-1-1-1-1-1-1-1-1-1)#!+++++P #++++++++++++++++++++++++++++++++++++++++++++++++++.
0+0#a ^MoOMoOMoOMoOMoOMoOOOM
-1*-10+4_3

For this language it ends in an error, but that is supposed to be allowed.

\$\endgroup\$
2
  • \$\begingroup\$ If you don't mind answering this, is it significant that there are two "iiiiiiiiiokh"s? \$\endgroup\$
    – 00Her0
    Jun 2, 2022 at 22:28
  • \$\begingroup\$ Actually it is a typo, so no, it isn't significant. @00Her0 \$\endgroup\$ Jun 3, 2022 at 1:18
2
\$\begingroup\$

19. AsciiDots, 278 Bytes, Cracked by stasoid

1#+iiiiiiiiiokh \#+++++++++++++++O \font\m=cmr10\m14\end ;n+3e
4+0# MoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOMoOOOM
print(8-(2*5-3)+(1/2)*10+1+1+1+1+1+1+1+1+1+1+1-1-1-1-1-1-1-1-1-1-1-1) #!+++++P #+++++++++++++++++++++++++++++++++.-#19$#&
0+0# >8z@ S5^7^MOAOF h$1 o$ h$8 o$
-1*-10+4_3

Try it online in Ruby Jelly Vyxal rSN Heada** Python 3 Brainf*** Runic Enchantments Deadfish~ FISHQ9+ Neutrino BitCycle COW TeX Brainf***+ RunR ><> xEec

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.