6. Starbattle is a game which is based on a grid of nxn cells. The grid is partitioned into n sets of connected cells; t
Posted: Mon May 09, 2022 11:59 am
6. Starbattle is a game which is based on a grid of nxn cells. The grid is partitioned into n sets of connected cells; these sets are called islands (see Figure 1). n stars must be placed in the grid such that each row, each column, and each island contain exactly one star. Moreover, all eight cells surrounding a cell with a star must remain empty. Formulate an LP model to minimize the total distance of stars to the center of the grid.