• Custom User Avatar

    this is five lists: [[0, 0, 0, 1], [1, None, 0, 1], [0, 1, 1, 1], [1, 1, 1, 1]]
    this copies one list cluster[:]
    meaning that the other four are still the same ones

    if the tests are showing the list after having allowed you to mutate it then that's not great because it can cause confusing messages that don't add up. buut you're also somewhat deserving of confusion if doing mutation where mutation isn't explicitly what is asked for.

  • Custom User Avatar

    It might be an issue with my code, but one of the fixed tests (total failure) says that the input is different from the real input.
    printing cluster at the beginning:
    [[0, 0, 0, 1], [None, None, None, None], [0, 1, 1, 1], [1, 0, 1, 1]]
    the test says:
    "For input: [[0, 0, 0, 1], [1, None, 0, 1], [0, 1, 1, 1], [1, 1, 1, 1]]: "

    I just create a copy of the cluster and operate on it (r = cluster[:]).

  • Custom User Avatar
    • Should use latest framework
    • No random tests
  • Custom User Avatar
  • Custom User Avatar

    the "different" should really be bolded or italicized. Preferably both..

    Besides, tttt contains four different ts and, therefore, four different letters.

    unique would be a better word, IMO.

  • Custom User Avatar

    dear god..

  • Custom User Avatar

    I made same misstake, e.g.missed the specification

    "a valid response word must contain four different letters"

    tent contains two t and is therefore an invalid answer.

  • Custom User Avatar

    I made same misstake :)

    e.g.missed the specification

    "a valid response word must contain four different letters"

    nett contains two t and is therefore an invalid answer.

  • Custom User Avatar

    Python:

    alice = ['loid', 'ends', 'solo', 'yoks', 'bloc', 'yeti', 'gied', 'brat', 'eath', 'pina', 'opal', 'oven', 'jigs', 'auld', 'pyas', 'diel', 'bawd', 'dolt', 'kiwi', 'kudu', 'pont', 'pita', 'dine', 'weir', 'birk', 'darn', 'smug', 'care', 'gyro', 'ayin', 'fuss', 'corf', 'ikat', 'once', 'oint', 'flip', 'maud', 'boho', 'mise', 'meme', 'seen', 'toph', 'inch', 'weld', 'liny', 'beam', 'ilex', 'cees', 'buts', 'feeb', 'afro', 'yoke', 'cagy', 'germ', 'oops', 'sold', 'kemp', 'base', 'pins', 'sice', 'loud', 'yaud', 'must', 'fins', 'jazz', 'deni', 'veep', 'tipi', 'moue', 'joys', 'bust', 'cope', 'deco', 'sits', 'jinx', 'nema', 'eros', 'tilt', 'mess', 'alec', 'nome', 'drek', 'mush', 'yips', 'wart', 'pyro', 'jobs', 'etna', 'bald', 'pase', 'caps', 'slub', 'lard', 'arch', 'duke', 'bufo', 'epha', 'craw', 'kris', 'raft']
    bob = ['jaup', 'eats', 'tent', 'scry', 'anes', 'whet', 'sons', 'hike', 'unto', 'whim', 'fled', 'trow', 'abri', 'jean', 'tils', 'gybe', 'sulu', 'kelt', 'zill', 'mony', 'zonk', 'bets', 'hols', 'colt', 'does', 'kuru', 'knag', 'bind', 'bite', 'scum', 'thio', 'laud', 'eses', 'luna', 'rhos', 'tale', 'nebs', 'toff', 'clog', 'teed', 'sigh', 'from', 'pack', 'ryot', 'hilt', 'anon', 'fang', 'vino', 'dude', 'hews', 'phut', 'mano', 'rack', 'lung', 'aped', 'chug', 'grat', 'spiv', 'term', 'yogi', 'char', 'sera', 'orra', 'axes', 'sane', 'snot', 'bubs', 'zouk', 'weta', 'fyke', 'zone', 'text', 'yaud', 'wyte', 'look', 'judo', 'guan', 'card', 'tool', 'orbs', 'memo', 'asea', 'lust', 'yuca', 'ires', 'inro', 'obol', 'lift', 'hied', 'darn', 'soak', 'luce', 'jamb', 'hock', 'tete', 'busy', 'kiln', 'page', 'faun', 'uses']
    
    first_word = 'ment'
    first = 1
    

    got

    1 should equal -1
    

    But Bob has 'tent'.

  • Custom User Avatar

    JS, generated tests:

      alice = [
      'bear', 'hemp', 'braw', 'seek', 'mime', 'gals', 'hops',
      'neon', 'mows', 'bigs', 'tabu', 'laky', 'naos', 'dona',
      'evil', 'soja', 'boxy', 'spot', 'lore', 'trog', 'tins',
      'yoga', 'yins', 'nibs', 'pice', 'peri', 'hive', 'suet',
      'zany', 'dels', 'rare', 'pfui', 'toph', 'curl', 'spun',
      'spud', 'vrow', 'sick', 'nigh', 'emmy', 'wale', 'path',
      'stir', 'amid', 'fate', 'deus', 'illy', 'arbs', 'twit',
      'deva', 'jean', 'pong', 'wove', 'toyo', 'yald', 'tell',
      'dish', 'dado', 'lord', 'slob', 'saga', 'lace', 'meld',
      'ramp', 'smew', 'errs', 'aeon', 'tats', 'doll', 'oryx',
      'howe', 'hits', 'note', 'veer', 'opus', 'naif', 'fons',
      'made', 'oses', 'stun', 'elds', 'emma', 'sika', 'polk',
      'quod', 'sulu', 'jars', 'gala', 'glad', 'goer', 'sizy',
      'burp', 'esne', 'puli', 'maim', 'ankh', 'abye', 'dodo',
      'wold', 'agee'
      ]
    
      bob = [
        'lari', 'upon', 'chut', 'cepe', 'tyro', 'frow', 'tref',
        'limn', 'maim', 'each', 'kiev', 'some', 'oyes', 'koas',
        'paps', 'guns', 'jump', 'gigs', 'hash', 'ably', 'bear',
        'spur', 'wail', 'slam', 'wyle', 'whid', 'mark', 'rush',
        'jauk', 'heil', 'rued', 'purs', 'deed', 'gasp', 'ebbs',
        'unai', 'fido', 'tilt', 'owns', 'dell', 'sibb', 'yaff',
        'shes', 'zinc', 'nixy', 'kame', 'nosh', 'gamb', 'fyke',
        'fane', 'glom', 'husk', 'just', 'soca', 'milt', 'ands',
        'ilks', 'otto', 'jute', 'diet', 'gapy', 'went', 'merl',
        'eggy', 'paws', 'meno', 'grim', 'aqua', 'cozy', 'lych',
        'lets', 'hyla', 'sops', 'diel', 'kyes', 'isba', 'nosy',
        'moas', 'caff', 'bead', 'waes', 'sark', 'moor', 'boys',
        'pula', 'nett', 'boar', 'flew', 'work', 'meal', 'base',
        'tabu', 'ribs', 'rink', 'evil', 'fere', 'keet', 'salp',
        'west', 'stat'
      ]
    
      firstWord = neat
    
      first = 0
    
      expected 1 to equal -1
    

    But Bob has 'nett' in his memory.

  • Custom User Avatar

    And Mutations seems like a fun game to play irl :D

  • Custom User Avatar

    In the 2nd sample test case:

    first word -> send
    
    Alice matches send to rend
    Bob   matches rend to lend
    Alice matches lend to ...nothing
    
    (so Bob wins)
    

    Rhyming is not part of this kata, instead of that idea, the words must have three out of four letters matching.

  • Custom User Avatar

    Hi All,can anyone help me to understand ,how the rules are working...like in second test case whien Alice -->"send",Bob-->"lend",Alice--->"rend",then I can't find any rhyming word in Bob list but test said Bob wins?I struggling to find the rule of this game?Thanks in Adv.

  • Custom User Avatar

    Hi, I ran the kata reference solution against the case you've presented and this is the outcome:

    starting word: hets
    
    Bob   matches  hets to jets
    Alice matches  jets to lets
    Bob   matches  lets to ...nothing
    
    (so Alice wins)
    

    So, I'm not sure why you think bob whould win and that the expected result should be -1 other than it is possible you may be reading the feedback off-by-one (the log appears above the test result).

  • Custom User Avatar

    If I understand correctly, I believe this is one of the rules:

    'this word cannot have already been used during the game'

    Please let me know if I understood your question.

  • Loading more items...