Retired

ChessBoard (retired)

Description
Loading description...
Puzzles
  • Please sign in or sign up to leave a comment.
  • hobovsky Avatar

    This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/82 Please join the discussion to share your opinions, and help us identify duplicate kata and retire them.

    • kazk Avatar
      Suggestion marked resolved by kazk 3 years ago
  • Blind4Basics Avatar
    • the description isn't giving the info that the output should finish with a new line
    • the tests are really bad:
      • my solution passes the tests without that last char
      • but the sample tests are specifically wanting it
      • there are close to no chances that the random tests catch that error
      • no fixed tests
      • the tested coordinates are ranom, but not the inputs
      • (why the hell not testing the full board string!??? xo )
  • glynester Avatar

    You are only ever provided with a single dimension. What does "checking the color of 8 X 3 field" mean when you are given a dimension of 8. It will be an 8 x 8 square. How useful is this message, "Here you should have whitespace - Expected: 'white', instead got: 'black'"?

  • ekamaks Avatar

    PHP translation kumitted. Please check and approve

  • Voile Avatar
    • Needs example tests
    • Which tile is whitespace, and which tile is #? The description only said the two tiles corresponds to them, but never said which one is which.
  • matt c Avatar

    example test cases would be awesome.

  • infinitLoop Avatar

    It accepts board without newline characters but with newline characters it fails at first test's third option which checks 8x3 field.

    • iuliaL Avatar

      Yes it's right your solution passes without new lines, and now I've changed that. But have you tried console.logging your string? It does not look like a chessboard. That's why it fails the 8x3 check.

    • infinitLoop Avatar

      Yeah I know it's just for testing :), now fixed and working, test cases seems works too. Thx for your effort.

      Issue marked resolved by infinitLoop 9 years ago
  • albmaso Avatar

    It would be helpful with these test cases, mark that '#' symbols are equal to black cells and ' ' are white cells.

  • albmaso Avatar

    This comment has been hidden.

  • St3f4n Avatar

    I managed to solve it with an empty function. Something is wrong with the test cases.