Ad
  • Default User Avatar

    The tests are okay.

    Your current solution doesn't meet the expected condition:

    If your total is more than or equal to (win), return 'Winner!'. Else return 'Loser!'.

    not an issue.

  • Custom User Avatar

    In PHP, I earned the test, but when I try to attempt it failed !
    Is there a bug ?

    Debug here :

    array(3) {
      [0]=>
      array(2) {
        [0]=>
        string(3) "ABC"
        [1]=>
        int(65)
      }
      [1]=>
      array(2) {
        [0]=>
        string(3) "HGR"
        [1]=>
        int(74)
      }
      [2]=>
      array(2) {
        [0]=>
        string(4) "BYHT"
        [1]=>
        int(74)
      }
    }
    string(7) "win = 2"
    string(9) "Result : "
    string(8) "in = ABC"
    string(10) "Search : A"
    string(9) "Result : "
    string(8) "in = HGR"
    string(10) "Search : J"
    string(9) "Result : "
    string(9) "in = BYHT"
    string(10) "Search : J"
    string(10) "Result = 1"
    string(12) "Attenmpt = 2"