Comments on Guess the language! (Cops' Thread)
Parent
Guess the language! (Cops' Thread)
A famous cops-and-robbers challenge whose source shall remain unnamed is brought to Codidact.
You are a cop. You should write a program in a "famous" (has an English Wikipedia/Esolangs/Rosetta Code page) language that prints Cops and Robbers
. That's all it does - prints exactly this stream of bytes, with optional trailing output if your language absolutely has to make it.
Don't assume REPLs, existing boilerplate or nonstandard flags. If your code has bytes outside printable ASCII range, it should have a hexdump available.
Do not, and I repeat, do not edit the source of your program after posting. You might want to make your program polyglot-free.
Your goal is to be the writer of the shortest program whose language still hasn't been determined after 2 weeks or 14 days. If your program isn't cracked by then, you may choose to reveal the language yourself.
Good luck, all!
C or C++ (gcc) 220 bytes, crac …
3y ago
Rockstar, cracked by Hakerh400 …
3y ago
JSFuck, cracked by user, 6106 …
3y ago
[Forth (gforth)], cracked by u …
3y ago
Japt, cracked by Razetime, 44 …
3y ago
Jelly, cracked by m90 13 bytes …
3y ago
brainfuck, cracked by Aaron Mi …
3y ago
Verbosity, 512 bytes, cracked …
3y ago
Erlang (escript)), 43 bytes - …
3y ago
Canvas, cracked by Shaggy, 129 …
3y ago
???, 268 bytes !(115,11 …
3y ago
[PicoLisp], cracked by Shaggy, …
3y ago
[F# (.NET Core)], cracked by S …
3y ago
[Rust], cracked by Shaggy, 37 …
3y ago
[D], cracked by Kevin M. Manso …
3y ago
[Japt], cracked by Shaggy, 17 …
3y ago
Post
C or C++ (gcc) 220 bytes, cracked by Razetime
%:
%: define cops(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t) if(not false and k%:%:f%:%:d%:%:l(& (not true) <:%:i%:j%:k%:l" "%:m" "%:n%:o%:p%:q%:r%:s%:t:> ))<%%>
%:
main()<%cops(w,h,a,t,s,u,p,?,C,o,p,s,and,R,o,b,b,e,r,s)%>
Output:
Cops and Robbers
Some explanation/de-obfuscation:
-
%:
is a digraph equivalent to#
.<%
and%>
are digraph equivalents to{
and}
.<:
and:>
are digraph equivalents to[
and]
. -
#
on an empty line is allowed but does nothing. -
not
andand
are alternative operators from iso646.h here used to make it look more like other languages. The boolean stuff is mostly there to confuse. - Using stringification # and token concatenation ##, the macro expands to:
if(!false and puts(&[not true]"Cops and Robbers")<%%>
- Removing obfuscation this is basically just
puts("Cops and Robbers")
.
1 comment thread