# Add a hidden language to a polyglot

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.

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.

# 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:

• 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. May 30 at 16:02
• Welcome to CGCC! Runic Enchantments was indeed the intended answer, so well done! :) May 30 at 16:03
• @KevinCruijssen Nice! I accidently found that just scrolling through TIO! I was shocked! Thought it was ><> or something at first. May 30 at 16:06
• Cracked May 30 at 16:36
• @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. May 30 at 17:59

# 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.

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

# 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


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!)

• 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... May 30 at 19:37
• Cracked! May 31 at 23:55
• Yes, my username is accident lol Jun 1 at 10:08

# 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

• This doesn't seem to run in Jelly May 30 at 3:59
• @Samathingamajig That's been fixed May 30 at 4:30
• Cracked, but I'm not going to post the next answer. May 30 at 4:46

# 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

$><<$$/$$  The answer to start things off. Should be fairly easy. • Cracked May 29 at 22:38 # 4. rSNBATWPL, 26 bytes print(8 - (2 * 5 - 3)) 5_3  The previous answer was in Vyxal • Ayy this is rSN isn't it May 29 at 23:18 # 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. • I was just about to post #12 lol – Seth Jun 1 at 5:01 • BitCycle Jun 1 at 5:50 • @Dingus Yep, that's the intended solution! Jun 1 at 5:50 • @Seth Good luck, this has been cracked so now you can extend it fairly easily. Join us in the chatroom if you need help Jun 1 at 6:10 # 2. Jelly, 11 bytes, cracked by Steffan $><<$$/$$
2


The previous answer was written in Ruby:

Try it online!

• This is Jelly, I'll post a new one in a min May 29 at 22:48
• @Steffan Missed oppurtunity to use Vyxal, smh my head May 29 at 22:51
• posted crack May 29 at 23:02

# 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.

# 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:

• I feel like this is some form of TeX, but I can't figure out how to run it Jun 2 at 2:23
• And generally lack of input is assumed, so I'd say the flag has to be revealed. Jun 2 at 2:53
• Agree with a username. Jun 2 at 2:56
• THIS CAN ALSO BE KEG!!! LINK Jun 2 at 7:03
• @Nobody Keg outputs 1 instead of 14, though. In your link you've modified the first line. Jun 2 at 10:46

$><<$$/$$ 2+3_3  The previous answer was written in Jelly. Try it online in Jelly. Try it online in Ruby. • Vyxal May 29 at 23:03 • Don't mark as cracked until another answer's posted May 29 at 23:03 # 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: • Cracked, but I'm not going to post a new answer. May 30 at 1:41 • It doesn't seem like your Headass code works according that link May 30 at 4:01 • @Samathingamajig Give it a couple of seconds to load and check for errors in the console. May 30 at 4:21 • @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? May 30 at 4:48 • @AidenChow Frick. That's probably an interpreter bug :P will see what I can do May 30 at 5:51 # 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  # 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  • This is broken for BF+, one minute please Jun 14 at 21:27 • Fixed it, works now! Jun 14 at 23:01 # 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 ><>. • This works in xEec tio.run/##q0hNTf7/…. I need some time to post next answer please. Jun 16 at 5:08 # 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.

• Got around to pushing it Jun 25 at 2:46

# 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 • … what … how … nice :p Jul 18 at 9:02 • It's been uncracked for more than a week by this point. I'm curious to see what the lang is :P Jul 27 at 8:31 • Oh wait... I just found the lang, holy shit. I literally came across this answer like 5 minutes ago, no joke. Jul 27 at 8:33 • 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. Jul 27 at 8:54 # 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 • COW Jun 1 at 22:39 • 20 mins. Nice one! It was pretty obvious though... Mostly just wanted to get a funny language in here. Jun 1 at 22:56 # 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. • If you don't mind answering this, is it significant that there are two "iiiiiiiiiokh"s? Jun 2 at 22:28 • Actually it is a typo, so no, it isn't significant. @00Her0 Jun 3 at 1:18 # 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