<awangdev>Nim Game_3.java
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];
    }
public boolean var_0 ( int var_1 ) {
  if ( var_1 <= 3 ) {
    return true ;
  }
  boolean [ ] var_5 = new boolean [ 4 ] ;
  var_5 [ 0 ] = true ;
  var_5 [ 1 ] = var_5 [ 2 ] = var_5 [ 3 ] = true ;
  for ( int var_8 = 4 ;
  var_8 <= var_1 ;
  var_8 ++ ) {
    var_5 [ var_8 % 4 ] = ! ( var_5 [ ( var_8 - 1 ) % 4 ] && var_5 [ ( var_8 - 2 ) % 4 ] && var_5 [ ( var_8 - 3 ) % 4 ] ) ;
  }
  return var_5 [ var_1 % 4 ] ;
}
