Ad
  • Default User Avatar

    Hi Adrian,sorry for late answer i go back to coding after work and family hours. I cant tell you initial input all i sse in test is - Should return '[3]' - Expected: [3], instead got: [] . Am i right if the given lines array contains only one figure for example 3 play function must return [3] ?

  • Custom User Avatar

    Hi Valeriy, I'm assuming you're solving this kata in Javascript? Please could you provide more details such as the initial input.

  • Default User Avatar

    Hello Adrian! I really do not understand how the test can return only 2 figures in result ? It's not possible according to kata description.
    Should return '[1,2]' - Expected: [1, 2], instead got: []

  • Default User Avatar
  • Default User Avatar

    Ok,thank you mate.

  • Default User Avatar

    adrian.eyre you're a godsend, I went from the Kata not taking my code to 250/250 passed almost immediately.

  • Custom User Avatar

    The class contructor should not accept arguments. The function play should accept two arguments die1 and die2 which are both integers.

    The tests are setup in the following way

    game = SnakesLadders() // No arguments passed in to the constructor
    test.assert_equals(game.play(1, 1), "Player 1 is on square 38")
    

    This means the only public function visable should be play and should return a string.

    Hope this helps.

  • Custom User Avatar
    • If a player has won the game then any additional plays on that game should return "Game over!"
  • Default User Avatar

    HellŠ¾ guys, i do not understand what does this statement mean "Return Game over! if a player has won and another player tries to play" ?