public void AddPin(Pin newPin) { for (int i = 0; i < Pins.Length; i++) { if (Pins[i] == null) { Pins[i] = newPin; return; } } }
public virtual Field CheckMove(Pin p, int steps) { if (steps == 0 && Pin.Player != p.Player) return this; else if (steps == 0 && Pin.Player == p.Player) return null; else return Next.CheckMove(p, steps - 1); }
public virtual void RemovePin() { pin = null; //Color = "Gray"; }
public virtual void AddPin(Pin newPin) { pin = newPin; pin.Field = this; }