Orkie
Super Duper Mega GP Mania
Hi.
In a game I'm currently working on, I have a 20 x 7 grid of square tiles, each of different colours. One player starts on the left and the other on the right. The aim of the game is (clearly) to capture more tiles than your opponent. However, I want tiles to automatically become captured when they are completely separated from the other side of the grid (i.e. there is some kind a line, not necessarily a straight one, cutting a tile or group of tiles off from the opponent's side).
I'm having trouble thinking of a way of determining if tiles match this requirement and should be captured, or not and was wondering if anybody can think of a way of doing this (it doesn't really matter how efficient the method is, so long as it works that's fine).
Thanks
In a game I'm currently working on, I have a 20 x 7 grid of square tiles, each of different colours. One player starts on the left and the other on the right. The aim of the game is (clearly) to capture more tiles than your opponent. However, I want tiles to automatically become captured when they are completely separated from the other side of the grid (i.e. there is some kind a line, not necessarily a straight one, cutting a tile or group of tiles off from the opponent's side).
I'm having trouble thinking of a way of determining if tiles match this requirement and should be captured, or not and was wondering if anybody can think of a way of doing this (it doesn't really matter how efficient the method is, so long as it works that's fine).
Thanks