Exemple #1
0
 // This method updates the group grid, consuming all stones in the SlaveGroup to the MAsterGroup
 private void MergeGroupGrid(AbGroup masterGroup, AbGroup slaveGroup)
 {
     for (var i = 0; i < _size; i++)
     {
         for (var j = 0; j < _size; j++)
         {
             if (_gridGroups[i, j] == slaveGroup.GetId())
             {
                 _gridGroups[i, j] = masterGroup.GetId();
             }
         }
     }
 }
Exemple #2
0
 // Removes the group from the Board
 private void DeleteGroup(AbGroup group)
 {
     _groups.Remove(group.GetId());
 }