comefrom: <awangdev>Nim Game_4.java
code: public boolean canWinNim(int n) {
          if (n <= 3) {
              return true;
          }
          boolean[] dp = new boolean[3];
          dp[0] = dp[1] = dp[2] = true;
          for (int i = 3; i < n; i++) {
              dp[i % 3] = !dp[(i - 1) % 3] || !dp[(i - 2) % 3] || !dp[(i - 3) % 3];
          }
          return dp[(n - 1) % 3];
      }
masked: public boolean var_0 ( int var_1 ) {
    if ( var_1 <= 3 ) {
      return true ;
    }
    boolean [ ] var_2 = new boolean [ 3 ] ;
    var_2 [ 0 ] = var_2 [ 1 ] = var_2 [ 2 ] = true ;
    for ( int var_3 = 3 ;
    var_3 < var_1 ;
    var_3 ++ ) {
      var_2 [ var_3 % 3 ] = ! var_2 [ ( var_3 - 1 ) % 3 ] || ! var_2 [ ( var_3 - 2 ) % 3 ] || ! var_2 [ ( var_3 - 3 ) % 3 ] ;
    }
    return var_2 [ ( var_1 - 1 ) % 3 ] ;
  }
  