Ad
  • Custom User Avatar
  • Custom User Avatar

    Can you post your current solution as a spoiler so i can have a look!

  • Custom User Avatar

    Same problem for me, i have written in c#

  • Custom User Avatar

    Random Tests
    Test Passed: Value == 'Player 1 has missed the ball!'
    Test Passed: Value == 'Player 2 has missed the ball!'
    Test Passed: Value == 'Player 1 has missed the ball!'
    Test Passed: Value == 'Player 2 has missed the ball!'
    Expected: 'Player 2 has won the game!', instead got: 'Player 1 has missed the ball!'
    Expected: 'Game Over!', instead got: 'Player 2 has missed the ball!'
    Expected: 'Game Over!', instead got: 'Player 1 has missed the ball!'
    Expected: 'Game Over!', instead got: 'Player 2 has missed the ball!'
    Expected: 'Game Over!', instead got: 'Player 1 has missed the ball!'
    Expected: 'Game Over!', instead got: 'Player 2 has missed the ball!'

    Every player has missed the ball, how can 'Player 2 has won the game!' ???

    The language is Javascript

  • Custom User Avatar
  • Custom User Avatar

    Personal think, use constructor is not a good practice