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