예제 #1
0
파일: Game.cs 프로젝트: ibanner56/Connect-4
 public void SetChain(int position, Entry neighbor)
 {
     if(neighbor == null || neighbor.Color != this.Color)
         return;
     
     if (position < 0 || position > 3)
         throw new ArgumentException("Position must be within 0 and 5");
     chains[position] = neighbor.GetChain(position) + 1;
 }