Ad
  • Default User Avatar

    Ok, this was fun (as always a little bit sobering to see the better solutions..), though strangely, so few people attempt this one. I think it might be a good idea to give a little more introductory info on the game rules like:
    "(Mega)Connect4 is played on a vertical, rectangular board. The players tokens drop in a column and stack on top of each other. The win condition is met when the token of the current move connects N-1 other tokens of the same kind in a vertical or horizontal line or a line parallel to the boards diagonals."

  • Custom User Avatar

    Kata could be made more user friendly by either:

    • making sure a clean solution shows all random test batch sizes (it now throws Max Buffer Size Reached (1.5 MiB), even without logging anyting) -> this part is really an ISSUE
    • add something to the description about random test batch sizes

    For now it's a black box, and doesn't help users figuring out how much optimisation is required.

  • Custom User Avatar

    Not helpful at all. Even on a clean solution, no logs, we are not able to see how many tests there are, and of which sizes.

    Max Buffer Size Reached (1.5 MiB)

  • Default User Avatar

    There is a room for performance improvement, but this kata is not about performance

  • Custom User Avatar

    interesting solution ;)

  • Default User Avatar

    Thank you, found my mistake

  • Custom User Avatar

    first test: (pieces, result)

    ([[[0, 0, 1, 1, 0, 0], [0, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1], [1, 0, 1, 0, 1, 1]], [[0, 1, 0, 0, 1, 1], [1, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1], [0, 0, 1, 1, 0, 1]], [[0, 0, 1, 1, 0, 1], [1, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1], [0, 0, 1, 1, 0, 0]], [[0, 0, 1, 1, 0, 0], [0, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 0], [0, 1, 0, 0, 1, 0]], [[0, 0, 1, 1, 0, 1], [1, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1], [1, 1, 0, 0, 1, 1]], [[0, 0, 1, 1, 0, 0], [0, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1], [0, 1, 0, 0, 1, 0]]], [[[0, 0, 1, 1, 0, 1], [1, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1], [1, 1, 0, 0, 1, 1]], [[1, 0, 1, 1, 0, 0], [1, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0], [0, 0, 1, 1, 0, 0]], [[0, 0, 1, 1, 0, 0], [0, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1], [1, 0, 1, 0, 1, 1]], [[0, 0, 1, 1, 0, 0], [0, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 0], [0, 1, 0, 0, 1, 0]], [[0, 1, 0, 1, 0, 0], [1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0], [1, 1, 0, 0, 1, 1]], [[0, 0, 1, 1, 0, 0], [0, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1], [0, 1, 0, 0, 1, 0]]])

  • Default User Avatar

    What is the solution for first fixed test in python? I can solve all random tests but, can't find solution for 1, 3 fixed tests.

  • Default User Avatar
  • Default User Avatar

    Arrgh! Even there, you sneaky bastard :)

  • Default User Avatar

    In this this Kata you need to make your program without any capital letters

    Generally you're correct but there are specific limitations in this kata which prevent you from doing that

  • Default User Avatar

    It's Java not JavaScript. Classname should start with uppercase and use camelcase.

    public class BrokenShift {
    	public brokenShift() {}
    }
    
  • Default User Avatar

    @rwood112 wait so is rollback(1) trivial? I was under the assumption that the argument for rollback denoted the number of moves to undo.

  • Default User Avatar

    Done

  • Custom User Avatar
  • Loading more items...