6 kyu

Covered pawns

181 of 305mdandre
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • ahmet_popaj Avatar

    Nice one of the chess series.

  • ejini战神 Avatar
    • Python new test framework should be used
  • ejini战神 Avatar
    • JS node 14 should be enabled

    • Should have sample tests on output not limited to 0 only

  • ejini战神 Avatar
    • Description does not mention what does it count as having their backs covered by another pawn?????

    • a pawn attack(and defend as well) only the 2 square on the sides in front of him. This is not the case for side-most squares. You should probably mention that attacks and defends can only be applied to diagonal squares in front of the white pawns, but bear not to exceed the boundaries of the chessboard or something equivalent

    • NO example tests

    • Other relevant information that is crucial in solving the kata should not be provided with a wiki link only

  • RealKenshiro Avatar

    covered by another

    means "if a white pawn is taken by a black piece p, is there another white pawn than can take p diagonally ?"

  • user6720290 Avatar

    wtf are we supposed to do?

  • ykIsCoding Avatar

    please explain the concept behind this...

  • FArekkusu Avatar

    Ruby translation. Please, review and approve (the author is inactive).

  • fenring76 Avatar

    White pawns cannot be in the first row.

  • JohanWiltink Avatar

    Random tests are vulnerable to input modification.

  • Voile Avatar

    From JS random tests:

    [ 'f8', 'f6', 'g7', 'b7', 'c8', 'd9' ]
    

    There are invalid pawn positions.

  • JohanWiltink Avatar

    JavaScript by convention uses camelCase, not snake_case.

    Please follow conventions.

  • Blind4Basics Avatar

    problem in the internal solution:

    Traceback:
       in <module>
       in trial
    NameError: name 'area' is not defined
    
  • Blind4Basics Avatar

    Hi,

    Interesting one, but there are some troubles with the description (I didn't try to submit yet). In my opinion:

    • you should add a link to an article explaining the rules for the pieces moves in chess game (just in case)
    • you HAVE to explain how the board is setted (how are the axes a,b,c... and 1,2,3...?). An image representing the board with the letters/numbers on it would be the better way (like in the chess and mate kata: that's actually a piece of html code)