Ad
  • Custom User Avatar

    Or is the preloaded code being defined based on the javascript array words? Again sorry, I'm probably making no sense, just trying to understand a little :)

  • Custom User Avatar

    This is the preloaded code you have:

    namespace Setup
    {
      public static class Preloaded
      {
        public static string[][] words = new string[][] {
        new string[] {"like", "a", "tweet", "what", "for", "world", "whale", "one", "last", "sun"},
        new string[] {"ocean", "beauty", "tweet", "monster", "yellow", "return", "despair", "flower", "return", "contrast"},
        new string[] {"romantic", "curious", "banana", "jealousy", "tactlessly", "remorseful", "follower", "elephant", "however", "instagram"},
        new string[] {"salmonella", "consequently", "irregular", "intelligence", "vegetable", "ordinary", "alternative", "watermelon", "controversial", "marijuana"},
        new string[] {"lackadaisical", "serendipity", "colonoscopy", "dramatically", "parsimonius", "imagination", "electricity", "diabolical", "deforestation", "abomination"},
        new string[] {"extraterrestrial", "onomatopoeia", "responsibility", "revolutionary", "generalisation", "enthusiastically", "biodiversity", "veterinarian", "characteristically", "indefatigable"},
        new string[] {"oversimplification", "individuality", "decriminalisation", "compartmentalisation", "anaesthesiologist", "industrialisation", "buckminsterfullerene", "irresponsibility", "autobiographical", "utilitarianism"}};
        
        public static string x = "like a monster whale\nlackadaisical tweet for\nworld salmonella";
        public static string y = "a romantic one\nserendipity beauty\ncolonoscopy";
        public static string z = "watermelon whale\nrevolutionary tweet\njealousy contrast";
      }
    }
    

    But in the description you are also referring to this javascript array which I defined in the original version:

    var words = [
    ["like", "a", "tweet", "what", "for", "world", "whale", "one", "last", "sun"],
    ["ocean", "beauty", "tweet", "monster", "yellow", "return", "despair", "flower", "return", "contrast"],
    ["romantic", "curious", "banana", "jealousy", "tactlessly", "remorseful", "follower", "elephant", "however", "instagram"],
    ["salmonella", "consequently", "irregular", "intelligence", "vegetable", "ordinary", "alternative", "watermelon", "controversial", "marijuana"],
    ["lackadaisical", "serendipity", "colonoscopy", "dramatically", "parsimonius", "imagination", "electricity", "diabolical", "deforestation", "abomination"],
    ["extraterrestrial", "onomatopoeia", "responsibility", "revolutionary", "generalisation", "enthusiastically", "biodiversity", "veterinarian", "characteristically", "indefatigable"],
    ["oversimplification", "individuality", "decriminalisation", "compartmentalisation", "anaesthesiologist", "industrialisation", "buckminsterfullerene", "irresponsibility", "autobiographical", "utilitarianism"]]
    

    Isn't the wordbank being provided by the former, rather than the latter?

  • Custom User Avatar

    Thanks for firxing that! Sorry, I have another question: I don't know anything about C#, so feel free to tell me if I'm wrong, but does it make sense to display the array words from the original description as well as the string that you've defined for the translation? Maybe it would be clearer to only show the string and edit the description to refer to it only.

  • Custom User Avatar

    Hey @Souzooka, sorry to take so long getting back to you. I think there is a mistake in the description, a lot of it is displaying as if it is code when it shouldn't. Can you edit this and then I can approve it? :)

  • Custom User Avatar

    Haha yes, I did search to see if there was a way to tag you buit didn't find any, so just copied the style of someone below :D I'll certainly try to learn some Ruby when I have a minute!

  • Custom User Avatar

    Ah, you replied just before me haha. Thanks for looking at it @GiacomoSorbi

  • Custom User Avatar

    Having looked at it, I can't see why the extended tests' expected solutions would come back with the wrong words - when I run the code separately they give the right ones, and when I try the random tests they seem to give the right words too. However I have to confess I don't know anything about Ruby. Maybe @GiacomoSorbi who did the Ruby translation can help?

  • Custom User Avatar

    Interesting! I'm gonna have a look at this and let you know what I think :)

  • Custom User Avatar

    Thanks for the translations! I'll approve them, then edit to follow camelCase - I'm not taking a stand against it haha, just forgot ;D

  • Custom User Avatar

    Thanks for spotting that! :)

  • Custom User Avatar

    The same happened to me today!