Ad
  • Default User Avatar

    Hello friend,
    you are not supposed to use single quotes(meaning this symbol -> ') but instead you are supposed to use the symbol that is right next to '1' on your keyboard(meaning this symbol -> `).

    I recommend you to read the info on the following link in order to fully understand this feature of the language. It's pretty straight forward.
    https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals

  • Default User Avatar

    Yep, seems to be working fine. Excellent kata btw.

  • Default User Avatar

    Hello friend, there seems to be a problem with the test cases. Here is an example :

    Testing for: realFloor = 97, totalRooms = 138
    ✘ Expected: '['122001', '122002', '122003', '122005', '122006', '122007', '122008', '122009', '122010', '122011', '122012', '122015', '122016', '122017', '122018', '122019', '122020', '122021', '122022', '122023', '122025', '122026', '122027', '122028', '122029', '122030', '122031', '122032', '122033', '122035', '122036', '122037', '122038', '122039', '122050', '122051', '122052', '122053', '122055', '122056', '122057', '122058', '122059', '122060', '122061', '122062', '122063', '122065', '122066', '122067', '122068', '122069', '122070', '122071', '122072', '122073', '122075', '122076', '122077', '122078', '122079', '122080', '122081', '122082', '122083', '122085', '122086', '122087', '122088', '122089', '122090', '122091', '122092', '122093', '122095', '122096', '122097', '122098', '122099', '1220100', '1220101', '1220102', '1220103', '1220105', '1220106', '1220107', '1220108', '1220109', '1220110', '1220111', '1220112', '1220115', '1220116', '1220117', '1220118', '1220119', '1220120', '1220121', '1220122', '1220123', '1220125', '1220126', '1220127', '1220128', '1220129', '1220150', '1220151', '1220152', '1220153', '1220155', '1220156', '1220157', '1220158', '1220159', '1220160', '1220161', '1220162', '1220163', '1220165', '1220166', '1220167', '1220168', '1220169', '1220170', '1220171', '1220172', '1220173', '1220175', '1220176', '1220177', '1220178', '1220179', '1220180', '1220181', '1220182', '1220183', '1220185', '1220186'

    As you can see in this test case we are supposed to use 3 digits for the rooms but once we reach a room that is greater than 100 the testcase adds a zero at the beginning of the room which if I am reading the instructions correctly is not supposed to happen. More specifically we are in room 122099 and the next room is expected to be 1220100(I think it should be 122100 instead, correct?)

  • Default User Avatar

    Thank you kind stranger :)

  • Default User Avatar

    Sometimes the random tests do not work as intended regarding the ' Dammit!' part of the returned string. Here are some examples :
    Testing for f, 1087 and 443 ✘ It should work for random inputs too - Expected: To beat f's score, I must complete 214 Beta kata and 2 8kyu kata., instead got: To beat f's score, I must complete 214 Beta kata and 2 8kyu kata. Dammit!

    Testing for PGRus, 4737 and 4332 ✘ It should work for random inputs too - Expected: To beat PGRus's score, I must complete 135 Beta kata and 0 8kyu kata., instead got: To beat PGRus's score, I must complete 135 Beta kata and 0 8kyu kata. Dammit!

    As you can see in both cases we agree that the total number of katas that must be completed is over 100 but kata is expecting a string without ' Dammit!' at the end.

  • Default User Avatar

    What you were probably going for : These can be seen from miles away, so before you check most other things - check for a free car!(The only thing you cannot avoid in this case is a Super Smash.) (or something similar).
    What you edited instead : These can be seen from miles away, so before you check most other things - check for aThe only thing you cannot avoid in this case is a Super Smash. free car!
    Almost there! Cool kata btw :)

  • Default User Avatar

    In the description you say this regarding open lambo doors 'These can be seen from miles away, so before you check anything else - check for a free car!' so one would think that in every case a free Lambo is found you should return that you found a free lambo either on the left or on the right but if there are both a free lambo and a 'Super Smash!', kata expects you to return 'Super Smash!' instead of 'Free lambo on Left/Right!'. I guess what I'm saying is that the description as it is can be confusing.