Ad
  • Custom User Avatar

    Might be helpful to add the word "rook" somewhere in the description. It took me a minute to figure out what towers had to do with chess. Though maybe that's a regional thing?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Already corrected, thanks!

    English isn't my mother tongue, so sorry about that.

  • Custom User Avatar

    Nice kata.

    Found a small typo.

    towerCombination(3) return 6, because only the following possibilities can be achieved.
    should be
    towerCombination(3) returns 6, because only the following possibilities can be achieved.

  • Custom User Avatar

    That was hard! Nice job with the kata.

    One small suggestion that I have is to improve the error messages for failed test cases. Took me a while to figure some of them out, such as "Before method called invoking P1."

  • Custom User Avatar

    That was fun. Haven't done anything involving genetic algorithms before, so this was a fun learning experience for me. Thanks!

    I did run into one issue, however.

        GeneticAlgorithm.prototype.run = function(fitness, length, p_c, p_m, iterations) {
          console.log(iterations);
        };
    

    prints out undefined (atleast on the first test).