public List <Koma> GetKomaList(PlayerType player) { return(KomaList.Where(x => x.Player == player).ToList()); }
public List <Koma> GetBoardKomaList(PlayerType player) { return(KomaList.Where(x => x.Player == player && x.IsOnBoard).ToList()); }
public BoardPositions BoardPositions(PlayerType player) { return(new BoardPositions(KomaList.Where(x => x.Player == player && x.IsOnBoard).Select(x => x.BoardPosition).ToList())); }