public void RemovePawn(Pawn pawn) { Pawns.Remove(Pawns.FirstOrDefault(x => x.PlayerId == Id && x.Type == pawn.Type)); }
public Pawn GetPawnOnPoint(Point point) { return(Pawns.FirstOrDefault(pawn => point == pawn.Position)); }
public void RemovePawn(Pawn pawn) { Pawns.Remove(Pawns.FirstOrDefault(x => x.PlayerId == Id && x.Type == pawn.Type)); }
public Pawn GetPawnOnPoint(Point point) { return(Pawns.FirstOrDefault(pawn => point == pawn.Position)); }