A novel meshless numerical method, called general particle dynamics (GPD), is proposed to simulate samples of rock-like brittle heterogeneous material containing four preexisting flaws under uniaxial compressive loads. Numerical simulations are conducted to investigate the initiation, growth, and coalescence of cracks using a GPD code. An elasto-brittle damage model based on an extension of the Hoek-Brown strength criterion is applied to reflect crack initiation, growth, and coalescence and the macrofailure of the rock-like material. The preexisting flaws are simulated by empty particles. The particle is killed when its stresses satisfy the Hoek-Brown strength criterion, and the growth path of cracks is captured through the sequence of such damaged particles. A statistical approach is applied to model the heterogeneity of the rocklike material. It is found from the numerical results that samples containing four preexisting flaws may produce five types of cracks at or near the tips of preexisting flaws including wing, coplanar or quasi-coplanar secondary, oblique secondary, out-of-plane tensile, and out-of-plane shear cracks. Four coalescence modes are observed from the numerical results: tensile (T), compression (C), shear (S), and mixed tension/shear (TS). A higher load is required to induce crack coalescence in the shear mode (S) than the tensile (T) or mixed (TS) mode. It is concluded from the numerical results that crack coalescence occurs following the weakest coalescence path among all possible paths between any two flaws. The numerical results are in good agreement with reported experimental observations.