MCMC simulation of the hard-core model