Post History
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%:...
Answer
#2: Post edited
# [???], 222 bytes```%:%: 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
- ```
- # C or C++ (gcc) 220 bytes, [cracked by Razetime](https://codegolf.codidact.com/posts/283157#answer-283157)
- <!-- language-all: lang-c -->
- %:
- %: 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)%>
- [Try it online!][TIO-ks0n7j8o]
- [C (gcc)]: https://gcc.gnu.org/
- [TIO-ks0n7j8o]: https://tio.run/##ZY5BasMwEEX3PsWQMsWG365KFoNxF71Bb2BLcqJElhxLJsd3xt50UQY@M48P88zHxZjtzUcTVuuo9Tmdv86f1676Y7lYn/6hIaWgcGOpWMi60UdHJs257jHAwMJhxAVXeNxwR8CEiIQZDyzIKA35sY6p0NiH7KiPlu4sLOMedo9Qv9PRKMvqGmoVeZYbi/bCiU4s05GRJbHMLA@WhSWzFOmoaVrmTuWqqfex1uuwe6pRj6IGq7p84@dwytD/@NV90HG7YcPdtr0A "C (gcc) – Try It Online"
- 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` and `and` 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: Initial revision
# [???], 222 bytes ``` %: %: 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 ```