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