looks like I fixed tests in Ruby, so now some solutions become invalid. Hope nobody cares a lot.
got the same problem on input ["a4", "dxc6", "gxh4", "axb2", "bxc4", "a2", "axb4", "b2", "c3"] Expected: "gxh4 is invalid", instead got: "dxc6 is invalid"
The reference implementation apparently does not check if there is a piece to be captured.
On 'cxd3' as the first move it happily moves the white c pawn to d3.
Same stuff happened to me, also forced my way through random tests, but I don't care enough to verify why this happens.
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?
Loading collection data...
looks like I fixed tests in Ruby, so now some solutions become invalid. Hope nobody cares a lot.
got the same problem on input ["a4", "dxc6", "gxh4", "axb2", "bxc4", "a2", "axb4", "b2", "c3"]
Expected: "gxh4 is invalid", instead got: "dxc6 is invalid"
The reference implementation apparently does not check if there is a piece to be captured.
On 'cxd3' as the first move it happily moves the white c pawn to d3.
Same stuff happened to me, also forced my way through random tests, but I don't care enough to verify why this happens.
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?