• Please use new python test framework.

  • Description says nothing about how we should handle the promotion case (when a pawn arrives legally at first or last line). I have not completed this kata yet and by reading below comentaries I guess this case doesn't occur but I'd expect description to say a word about that.

  • Same stuff happened to me, also forced my way through random tests, but I don't care enough to verify why this happens.

  • where is your logic in this? have u ever played chess?
    pawns only move foward
    the only condition for them to move diagonally they have to capture an enemy Piece

    or did the autor of the kata do mistakes?

  • Can you approve my CoffeeScript translation ?

  • Moves: ["exd3", "c5", "e5", "a2", "f3", "g5", "c2", "e4", "c4"]
    Expected: "e5 is invalid", instead got: "exd3 is invalid"

    I printed the moves array and it shows clearly that a capturing move on the first turn should be invalid. I can also pass the kata after submitting a few times, presumbly the bugged test is not generated.

  • Could you give original board inputs? 7 other people have passed this though, are you sure you haven't mutated the input in some way?

  • The random test in Ruby is bugged. When an invalid capturing move is given, the move after it is expected??

    ["cxb3", "b6", "b6"]
    Expected: "b6 is invalid", instead got: "cxb3 is invalid"

    ["cxd3", "b7", "a2", "b7", "a4", "gxh6", "a4", "d4", "d4"]
    Expected: "b7 is invalid", instead got: "cxd3 is invalid"

    ["dxc3"]
    Expected: [[".", ".", ".", ".", ".", ".", ".", "."], ["p", "p", "p", "p", "p", "p", "p", "p"], [".", ".", ".", ".", ".", ".", ".", "."], [".", ".", ".", ".", ".", ".", ".", "."], [".", ".", ".", ".", ".", ".", ".", "."], [".", ".", "P", ".", ".", ".", ".", "."], ["P", "P", "P", ".", "P", "P", "P", "P"], [".", ".", ".", ".", ".", ".", ".", "."]], instead got: "dxc3 is invalid"

    ["e3", "a6", "fxe3", "c3", "b3", "a4"]
    Expected: "c3 is invalid", instead got: "fxe3 is invalid"

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

  • At least in Python there are no test cases for a pawn moving two units after its initial move.

  • This was a great kata, I really enjoyed it! I think the description should clarify that a square does not need to be occupied for a capture to be valid though.

  • Hey, this problem could use a little more clarification. So, are the moves that we are given always going to be in the right order or not? Ie P moves, then p moves, then P moves? Also in terms of incorrect moves, do we always just break off iterating over moves if we find one bad move? Do we try to continue and gather all the bad moves, before returning?

  • Already done

  • C++ 17 should be enabled.

  • Loading more items...