comefrom: <gouthampradhan>array_ValidTicTacToeState_1.java
code: private boolean hasWon(String[] board, char c) {
      boolean diagnol =
          ((board[0].charAt(0) == c && board[1].charAt(1) == c && board[2].charAt(2) == c)
              || (board[0].charAt(2) == c && board[1].charAt(1) == c && board[2].charAt(0) == c));
      if (diagnol) return true;
      for (int i = 0; i < 3; i++) {
        if (board[i].charAt(0) == c && board[i].charAt(1) == c && board[i].charAt(2) == c)
          return true;
      }
      for (int i = 0; i < 3; i++) {
        if (board[0].charAt(i) == c && board[1].charAt(i) == c && board[2].charAt(i) == c)
          return true;
      }
      return false;
    }
masked: private boolean var_0 ( String [ ] var_2 , char var_3 ) {
    boolean var_9 = ( ( var_2 [ 0 ] . charAt ( 0 ) == var_3 && var_2 [ 1 ] . charAt ( 1 ) == var_3 && var_2 [ 2 ] . charAt ( 2 ) == var_3 ) || ( var_2 [ 0 ] . charAt ( 2 ) == var_3 && var_2 [ 1 ] . charAt ( 1 ) == var_3 && var_2 [ 2 ] . charAt ( 0 ) == var_3 ) ) ;
    if ( var_9 ) return true ;
    for ( int var_10 = 0 ;
    var_10 < 3 ;
    var_10 ++ ) {
      if ( var_2 [ var_10 ] . charAt ( 0 ) == var_3 && var_2 [ var_10 ] . charAt ( 1 ) == var_3 && var_2 [ var_10 ] . charAt ( 2 ) == var_3 ) return true ;
    }
    for ( int var_10 = 0 ;
    var_10 < 3 ;
    var_10 ++ ) {
      if ( var_2 [ 0 ] . charAt ( var_10 ) == var_3 && var_2 [ 1 ] . charAt ( var_10 ) == var_3 && var_2 [ 2 ] . charAt ( var_10 ) == var_3 ) return true ;
    }
    return false ;
  }
  