6 kyu

The Creep Inspector

Description
Loading description...
Puzzles
Algorithms
  • Please sign in or sign up to leave a comment.
  • Mednoob Avatar

    Typo in one of the section's title:

    Input Contraints -> Input Constraints

    (also to poke you about this kata and suggestion below)

  • Blind4Basics Avatar

    Hi,

    • The number 0 is special, as the creep is no longer on that cell, but it was still there the previous generation.

      Depending on the way you look at it, 0 may not be special at all. To me it's actually the very same than others: it's a creep with "no life remaining" => still alive right now, but disappears on the next round.

    • since walls aren't shown in the example tests (inputs), I' wouldn't draw them in the description. Not really important.

    • On the other hand, it would be cool to see some walls inside the grids in the description.

    • maybe add the 4+4+3+3 => 9 case, also? ("hidden" in the example, without advertising it)

    • the sample tests are a bit confusing to look at, because one can see arrays there, while the description is talking about strings, and the act function isn't visible anywhere => the guess is that the input will be transformed, but it's only a guess. Why not defining the inputs and outputs as multiline strings? If the alignments are bothering you, you can escape the first line:

      `\
      ...
      ...
      .0.`
      
    • the tests are logging stuff (VERBOSE=true). Is that wanted? (I guess so but... unusual.)

    Cheers

  • Voile Avatar

    Creep? Perhaps you're thinking of Creeper World?