6 kyu
Unary Messages
61 of 474S_OK
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Quite nice and funny kata to solve in fact, good job.
Ruby 3.0 should be enabled (Refer this for more detail)
Decent kata, would've enjoyed it more if the output messages (JS) were better, they were useless for debugging. Description also could be better written.
Thank you for the constructive suggestions for improvement.
The Chuk Noris sentence should start with 00 0 0 0 00 00 0 000 (code for ' binary 0100111 - 7bit ) but the expected output is 0 0 00 0000 0 00 which is C why is this disparity?
On C++ I get the following error, despite not using std::bitset in my solution:
main.cpp:252:24: error: no member named 'bitset' in namespace 'std'
Adding the line below resolves it. I suspect this needs to be added to the file that is acutally using std::bitset.
You were correct.
#include <bitset>
has been added to the main test fixture. User no longer required to include.I have problem with random receive. Every time random text include one unprintable character witch is not in range of ASCI code 32 - 127. As expected result I get some wierd characters. "to equal" result, same character is unprintable, even in VS code, when I copy/paste, it is presented as empty space.
Maybe you could enter this string as test: ' !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~'
Adjusted some languages to use
[32; 126]
character range. Reset the trainer, and it should work fine.Elixir translation awaiting approval.
Please adapt the random tests to the rule "The input message consists of ASCII characters between 32 and 127".
It already does. If you look at the source for the random test generator function, it has the following piece of code:
<<randint(32,127)>>
. That means it takes a random integer between 32 and 127 (inclusive) and adds the corresponding ascii character to the resulting string.Sorry, I confused that with the call. Great thank you very much!
( JS, possibly others )
Test messages actually consist of ASCII characters between 32 and 127.
Adjusting the description is the better option probably.
All translations use chars in range
[32; 127]
(126
in Ruby). This "rule", which is not even a rule, should be dropped, and, preferably, C++ and C# tests should be adjusted to use the same range as other languages instead of having ~30 unprintable chars.Description, C++ and C# tests adjusted.
Hi during the tests im getting following error
Expected: equal to 00 0 0 0 00 00 0 0 00 0 0 0 Actual: 0 0 00 00 0 0 00 0 0 0
for % ascii cnumber is 37 It's binary pepresentation is then 100101, and example suggests 0100101
Please look at the first rule again.
Thanks. I was unsure if this rule also applied to output of my send function;
JavaScript and TypeScript translations kumited!
Thanks!
Ruby translation kumited -- please check and approve!
Look's good. Thanks!
Ha this is from CodeOnGame
No, from Coding Game :-)
Yep https://www.codingame.com/training/easy/chuck-norris
Why no credit for original website then? o_O
It's not my kata :)
I meant the author, obviously :P
Right, honor is due to the Creator. Will add that tomorrow.
Added. Is that so okay?
Thanks to you, I spent most of my day on that site, instead of working...
Me too :-))
Python translation. Please, review and approve.
Great. Thanks!
I have got an error : '⇃' should equal 'CC', and a log input '00 0 0 0 00 00 0 0 00 0 0 0' which means '%' when 'CC' is '0 0 00 0000 0 000 00 0000 0 00' by Instuctions. Where am I mistaken?
If I understand your question correctly, then you use the character '⇃' as input. Valid characters have values between 0 and 127 (7bit). Did you create the input manually or is it a random test?
It was a fixed test. I forgot that input characters are 7 bits long. Thank you!
TestSend
andTestReceive
are identical.Changed. Thanks!
The tests can be easily cheated.
Changed. Thanks!