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_1 , char var_2 ) {
    boolean var_3 = ( ( var_1 [ 0 ] . charAt ( 0 ) == var_2 && var_1 [ 1 ] . charAt ( 1 ) == var_2 && var_1 [ 2 ] . charAt ( 2 ) == var_2 ) || ( var_1 [ 0 ] . charAt ( 2 ) == var_2 && var_1 [ 1 ] . charAt ( 1 ) == var_2 && var_1 [ 2 ] . charAt ( 0 ) == var_2 ) ) ;
    if ( var_3 ) return true ;
    for ( int var_4 = 0 ;
    var_4 < 3 ;
    var_4 ++ ) {
      if ( var_1 [ var_4 ] . charAt ( 0 ) == var_2 && var_1 [ var_4 ] . charAt ( 1 ) == var_2 && var_1 [ var_4 ] . charAt ( 2 ) == var_2 ) return true ;
    }
    for ( int var_4 = 0 ;
    var_4 < 3 ;
    var_4 ++ ) {
      if ( var_1 [ 0 ] . charAt ( var_4 ) == var_2 && var_1 [ 1 ] . charAt ( var_4 ) == var_2 && var_1 [ 2 ] . charAt ( var_4 ) == var_2 ) return true ;
    }
    return false ;
  }
  