I think C is a good choice you will make a lot of things that you canât do with Python.
cool way of experimenting with encoding, love the ascii art
Just wanted to say this was a cool puzzle. I went through all the test cases manually just to see the pictures after getting them all green with the test all button.
That was really fun puzzle loved the test cases.
The test were really fun but although I passed all the test, the validator said I failed #7 : Impossible Triangle Validator. Could someone help me where I went wrong?
Hey 5am â
Thanks for playing my puzzle. I just double-checked the impossible-triangle validator and it really is the same thing as the actual test (only a smaller size). Thereâs no stray extra spaces or anything. If you want I can private message you the input. But I am baffled as to why the validator would fail.
@Lisa-Has-Ideas any chance youâd be willing to share your program for creating the recipes from the ASCII art? Iâd love to take a look at how you tackled that
Sure. I just sent a direct message to you (on Codingame).
How do i input the code? im stupid
Hi Hermione â When you click âPlay TestCaseâ or âPlay all testcasesâ or âSubmitâ, that runs your code, including inputting the values.
Is that what you were asking? If not, please re-phrase and ask again.
(Also cats arenât stupid)
Hi everybody,
Thank you Lisa-Has-Ideas for this puzzle !
Iâm trying to solve it in Javascript, but I donât understand the error message:
âTypeError: Cannot read properties of undefined (reading âmatchâ)â
My code is:
Summary
const T = readline();
const letters= T.split(" ");
var answer=[];
var re = /\d/;
for(i=0; i<=letters.length; i++){
var item = letters[i];
if(item.match(re)){
var number = parseInt(item.match(re));
var instructions = item.replace(number,"");
if(instructions=="sp"){
instructions=" ";
}
else if (instructions=="bS"){
instructions="\\";
}
else if(instructions=="sQ"){
instructions="'";
}
for(y=1; y<=number; y++){
answer.push(instructions);
}
}
else if(item=="nl"){
answer.push("\n");
}
};
console.log(answer.join(''));
If somebody could tell me what Iâm doing wrong, I would be very gratefulâŚ
Thanks a lot !
Wombat85
Hint for debugging:
Add a line:
console.error(letters);
Then look at these two lines:
for(i=0; i<=letters.length; i++){
var item = letters[i];
The âfor loopâ will go through letters[0], letters[1], âŚ, etc, and what does i equal to in the last iteration of the âfor loopâ?
Thank you so much !
Cool and easy puzzle, had a little fun
This was interesting, beautiful and fun to do; I know there was work in encoding the art (and much thought too) - Thank you for this exercise!
Thank you for the kind words.
Actually the encoding was really not that hard; the true work was done by the creators of the art itself.
Iâm just so tickled that so many players have enjoyed thisđ
Yes thanks for this great puzzle! It was a pleasure to solve,and the artwork at the end was a beautiful reward
Thank you for the kind works. Iâm so glad players enjoy this so much
Hey Guys I have a curious little Problem with my Python script that i somehow cant wrap my head around: If i pass \\ to put a single backslash in my answer string it will not do it as it prints both
inputs = [â1bSâ]
if âbSâ in inputs[i]:
for _ in range(int(number)):
answer += â\\â
print(answer)Standard Output Stream:
\\
However Python will not let you pass a single \ as it is treated as a breakout character.
inputs = [â1bSâ]
if âbSâ in inputs[i]:
for _ in range(int(number)):
answer += â\â
print(answer)Errors
SyntaxError: EOL while scanning string literal
at Answer.py. not in a function on line 31
I have also tried using char("\"), râ\', râ\', str(answer) or even trying to just force one of them in by taking only the first entry of an created string (tmp = "\" answer = tmp[0]) however none of these will actually do what i need. Any ideas of how to solve this ?
Edit: just found out that this textbox also removes one \ if you have it in a text this is two backslashes after each other ==> \
Maybe you have some other errors in your code?
If the code is:
print("\\")
then the output is one backslash, not two.