4
\$\begingroup\$

Robbers thread

In this challenge, your task is to write a program h that outputs "Hello Shue!". Next, you have to choose a string i and also write a Shue program p, so that p(i)=h. Your score is len(p)+len(i). Your answer will contain the language of h, i and your score (please write the score as len(p)+len(i)=score). Robbers will try to find p. Note that any working p, that is as long as your p or shorter means that your answer is defeated, even if it wasn't the solution you intended. The undefeated cop answer with the smallest score wins (per language).

To understand this challenge let's look at an example submission in Python:

Python 3, score 47+22=69

(rint?KH++lloooShu++K'

Not included in the post is the following Shue program (p):

print("Hello Shue")
(=p
?=(
K="
++=e
ooo=o 
'=)

Note that there is a trailing space after the o

The first line is the program h. Next are a series of replacement rules. Let's see how they work.

With the input (rint?KH++lloooShu++K' (i) we can get to h like so

(rint?KH++lloooShu++K'
(rint(KH++lloooShu++K' - ?=(
print(KH++lloooShu++K' - (=p
print("H++lloooShu++K' - K="
print("H++lloooShu++K) - '=)
print("H++lloooShu++") - K="
print("H++llo Shu++")  - ooo=o 
print("Hello Shu++")   - ++=e
print("Hello Shue")    - ++=e

If your code h contains equals signs, backslashes or newlines, escape them with \=,\\ and \n respectively in the Shue program p (but not in the input i). If your code contains nulls or non-unicode bytes, don't worry, Shue is byte-oriented.

\$\endgroup\$
9
  • 5
    \$\begingroup\$ I think this challenge could really do by starting with a sentence or two explaining what this cops and robbers is about before introducing variable names. In particular, what is the idea of Shue and why should we bother learning this language you made up and what makes it interesting for this challenge? \$\endgroup\$
    – xnor
    Feb 28, 2022 at 19:42
  • \$\begingroup\$ Do we need a trailing newline in the output of "Hello, Shue"? \$\endgroup\$
    – Seggan
    Mar 1, 2022 at 1:59
  • \$\begingroup\$ @l4m2 no, you must use the exact same i as the cop \$\endgroup\$
    – AnttiP
    Mar 1, 2022 at 16:01
  • \$\begingroup\$ @l4m2 I mean, if a shorter i was allowed, you could just say that i="" and p="print('Hello Shue!')\n=print('Hello Shue!')" and win every time. \$\endgroup\$
    – AnttiP
    Mar 1, 2022 at 16:08
  • \$\begingroup\$ OK there's no length limit of h and whatever \$\endgroup\$
    – l4m2
    Mar 1, 2022 at 16:11

2 Answers 2

2
\$\begingroup\$

Vyxal, score 28+19=47

\a:ȯ≤∨I:C‹C\Hp5‛ SṀṅ

Try input online!
I don't know if it'll be an easy crack, or if I forgot something.

\$\endgroup\$
2
  • \$\begingroup\$ I think 28 plus 19 is 47... \$\endgroup\$
    – ophact
    Mar 2, 2022 at 14:08
  • \$\begingroup\$ @ophact this is embarrassing... I changed 20 to 19 and forgot to update \$\endgroup\$
    – math scat
    Mar 2, 2022 at 14:10
2
\$\begingroup\$

Python 3, score 163+563=726, Safe

In this cops-and-robbers challenge, your task is to write a program h that outputs "Hello Shue!". Next, you have to choose a string i and also write a Shue program p, so that p(i)=h. Your score is len(p)+len(i). Your answer will contain the language of h, i and your score (please write the score as len(p)+len(i)=score). Robbers will try to find p. Note that any working p, that is as long as your p or shorter means that your answer is defeated, even if it wasn't the solution you intended. The undefeated cop answer with the smallest score wins (per language).

Not that fun though

print("Hello Shue")
I=
n=
 =
t=
h=
i=
s=
c=
o=
-=
a=
d=
b=
e=
r=
l=
g=
,=
y=
u=
k=
w=
p=
m=
.=
N=
x=
v=
S=
(=
)=
\==
Y=
+=
f=
R=
'=
T=
=nt(

actually 140 bytes

\$\endgroup\$

Your Answer

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

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